The library is very thin and fast, and fully passes all args to ECharts API
See ECharts Demos in: https://ecomfe.github.io/echarts-examples/public/index.html
See ECharts API in: https://ecomfe.github.io/echarts-doc/public/en/option.html
using ECharts,DataFrames
#### Create Random DataFrame
points=50
df=DataFrame()
df[:x]=rand(points)*100
df[:y]=rand(points)*10
df[:series]=rand(["SerieA","SerieB"],points)
df[:symbolSize]=rand(10:1:25,points)
head(df)
x | y | series | symbolSize | |
---|---|---|---|---|
1 | 31.84270924596433 | 1.1291218016205407 | SerieB | 25 |
2 | 9.51935323310824 | 0.7565851121855416 | SerieB | 19 |
3 | 74.79062647870633 | 6.802525807551829 | SerieA | 20 |
4 | 28.670134613169918 | 1.063095167149788 | SerieB | 22 |
5 | 75.85640060366802 | 0.7252974837492654 | SerieB | 17 |
6 | 88.8391920100435 | 1.1211873678638784 | SerieA | 17 |
## simple Chart using series helper sintax
EChart(ctype="scatter",x=df[:x],y=df[:y],series=df[:series],symbolSize=df[:symbolSize])
## simple Chart using series helper sintax
EChart(ctype="pie",x=[1000,2000,3300],names=["A","B","C"])
## Fully customized Chart using API sintax
ECharts.EChart(Dict(
"legend"=>Dict("data"=>["S1","S2","S3"]),
"xAxis"=>Dict("type"=>"category","data"=>["X1","X2","X3","X4","X5"]),
"yAxis"=>[Dict("type"=>"value","name"=>"Amount"),Dict("type"=>"value","name"=>"Number")],
"series"=>[
Dict("type"=>"bar","name"=>"S1","stack"=>"s","data"=>[100,200,350,920,700]),
Dict("type"=>"bar","name"=>"S2","stack"=>"s","data"=>[60,120,50,30,40]),
Dict("type"=>"line","name"=>"S3","yAxisIndex"=>1,"data"=>[10,90,80,40,100])
]
))