ec.fromJson {echarty} | R Documentation |
Convert JSON string to chart
ec.fromJson(txt, ...)
txt |
JSON character string, url, or file, see fromJSON |
... |
Any arguments to pass to internal ec.init |
txt
should contain the full list of options required to build a chart.
It is subsequently passed to ECharts function setOption.
An echarty
widget.
txt <- '{
"xAxis": { "type": "category",
"data": ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
},
"yAxis": { "type": "value" },
"series": { "type": "line",
"data": [150, 230, 224, 218, 135, 147, 260]
} }'
ec.fromJson(txt)