echartsExample: Create Echarts from Echarts Glaery

Description Usage Arguments Examples

View source: R/echartsExample.R

Description

Create Echarts from Echarts Glaery

Usage

1
2
3

Arguments

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.

Examples

 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)

taiyun/recharts documentation built on Aug. 29, 2020, 3:17 a.m.