ec.fromJson {echarty}R Documentation

JSON to chart

Description

Convert JSON string to chart

Usage

ec.fromJson(txt, ...)

Arguments

txt

JSON character string, url, or file, see fromJSON

...

Any arguments to pass to internal ec.init

Details

txt should contain the full list of options required to build a chart. It is subsequently passed to ECharts function setOption.

Value

An echarty widget.

Examples

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)


[Package echarty version 0.2.0 Index]