public class Engine extends Object
| Constructor and Description |
|---|
Engine() |
| Modifier and Type | Method and Description |
|---|---|
void |
render(String path,
Chart<?,?> chart)
Used in simple chart case, render the echarts in html file, in default width,
height and willOpen.
|
void |
render(String path,
Chart<?,?> chart,
String height,
String width,
Boolean willOpen)
Used in simple chart cases, render the echarts in
customized width, height, and willOpen
|
void |
render(String path,
Option option)
Used in advanced chart case, render the echarts in html file, in default
width, height and willOpen
|
void |
render(String path,
Option option,
String height,
String width,
Boolean willOpen)
Used in both simple and advanced chart cases, render the echarts in
customized width, height, and willOpen
|
String |
renderHtml(Chart<?,?> chart)
Used in the simple case, render the echarts in default width and height,
without download button
|
String |
renderHtml(Chart<?,?> chart,
String height,
String width)
Used in the simple cases, render the echarts in customized
width and height, without download button
|
String |
renderHtml(Option option)
Used in the advanced case, render the echarts in default width and height,
without download button
|
String |
renderHtml(Option option,
String height,
String width)
Used in both the simple and advanced cases, render the echarts in customized
width and height, without download button
|
String |
renderJsonOption(Chart<?,?> chart)
Render serialized json object of Option in Chart
|
String |
renderJsonOption(Option option)
Render serialized json object of an Option
|
public void render(String path, Chart<?,?> chart)
path - path to save the html filechart - the chart to be renderedpublic void render(String path, Option option)
path - path to save the html fileoption - the option used to init the chartpublic void render(String path, Chart<?,?> chart, String height, String width, Boolean willOpen)
path - path to save the html filechart - the chart to be renderedheight - the height of the chart, ends with "px" or "%"width - the width of the chart, ends with "px" or "%"willOpen - whether allowing to open the html in browser automaticallypublic void render(String path, Option option, String height, String width, Boolean willOpen)
path - path to save the html fileoption - the option used to init the chartheight - the height of the chart, ends with "px" or "%"width - the width of the chart, ends with "px" or "%"willOpen - whether allowing to open the html in browser automaticallypublic String renderHtml(Chart<?,?> chart)
chart - the chart to be renderedpublic String renderHtml(Option option)
option - the option to initiate the chartpublic String renderHtml(Chart<?,?> chart, String height, String width)
chart - the chart to be renderedheight - the height of the chart, ends with "px" or "%"width - the width of the chart, ends with "px" or "%"public String renderHtml(Option option, String height, String width)
option - the option to initiate the chartheight - the height of the chartwidth - the width of the chartpublic String renderJsonOption(Chart<?,?> chart)
chart - the chart to be renderedCopyright © 2022. All rights reserved.