Description Usage Arguments Examples
View source: R/echartsExample.R
Create Echarts from Echarts Glaery
| 1 2 3 | 
| url | Links from 'https://ecomfe.github.io/echarts-examples/public/index.html' (Chinese Version: 'http://echarts.baidu.com/examples.html'). | 
| JScontent | JScodes for Echarts. An object named option should be created in these codes. | 
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Create from link
echartsExample("http://echarts.baidu.com/demo.html#effectScatter-bmap")
# Create from JS codes
JScodes = "
var option = {
  title: {
    text: 'ECharts entry example'
  },
  tooltip: {},
  legend: {
    data:['Sales']
  },
  xAxis: {
    data: ['shirt','cardign','chiffon shirt','pants','heels','socks']
  },
  yAxis: {},
  series: [{
    name: 'Sales',
    type: 'bar',
    data: [5, 20, 36, 10, 10, 20]
  }]
};
"
echartsExample(JScontent=JScodes)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.