Description Usage Arguments Value References See Also Examples
When an echart object is generated, you can modify it by setting grid using
%>%.
It is recommended to put setGrid at the end of the piped command.
When used for 'pane', it is only applicable for scatter, point, bubble,
line, area, bar, histogram. When used for 'timeline', it only take in params
x, y, x2, y2. When used for 'legend', 'title', 'dataZoom', 'dataRange',
'toolbox', 'roamController', it only takes in params x, y.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | setGrid(chart, index = 1, left = NULL, top = 60, right = "10%",
bottom = 60, width = NULL, height = NULL, containLabel = FALSE,
bgColor = NULL, borderColor = NULL, borderWidth = 1,
shadowBlur = NULL, shadowColor = NULL, shadowOffsetX = 0,
shadowOffsetY = 0, show = TRUE, z = 2, zlevel = 0,
widget = c("pane", "timeline", "legend", "title", "dataZoom", "dataRange",
"toolbox"), ...)
relocTitle(chart, ...)
relocLegend(chart, ...)
relocDataZoom(chart, ...)
relocDataRange(chart, ...)
relocTimeline(chart, ...)
relocToolbox(chart, ...)
|
chart |
|
index |
Integer, index of the widget, if widget is 'pane'. Default 1. |
left |
Left margin of the plot area. Default NULL ('auto'). |
top |
Top margin of the plot area. Default 60 px. |
right |
Right margin of the plot area. Default '10%'. |
bottom |
Bottom margin of the plot area. Default 60 px. |
width |
Width of the plot area. Default NULL (automatically configured) |
height |
Height of the plot area. Default NULL (automatically configured) |
containLabel |
Logical, whether grid area contains axis label. Default FALSE. Set if TRUE when the chart is too small to show the axis label. |
bgColor |
Background color of plot area. Default transparent ('rgba(0,0,0,0)'). |
borderColor |
Border color of the plot area. Default '#ccc'. |
borderWidth |
Border width of the plot area. Default 0px (not shown). |
shadowBlur |
Numeric, size of shadow blur. Only effective when |
shadowColor |
Color of the shadow. Only effective when |
shadowOffsetX |
Numeric, horizontal offset of the shadow. Only effective
when |
shadowOffsetY |
Numeric, vertical offset of the shadow. Only effective
when |
show |
Logical, if grid is shown. Default FALSE. |
z |
Layer index of the widget. It does not create new canvas. Default 2. |
zlevel |
Layer index of the canvas. Default 0. |
widget |
Widget name to set. Could be
|
... |
Other arguments to pass to echarts object. |
A modified echarts object
http://echarts.baidu.com/echarts2/doc/option.html#title~grid
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.