Giter VIP home page Giter VIP logo

echarts.jl's Introduction

ECharts.jl

Julia Library that wraps fully the ECharts (Baidu) JS Library

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

Examples

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)
xyseriessymbolSize
131.842709245964331.1291218016205407SerieB25
29.519353233108240.7565851121855416SerieB19
374.790626478706336.802525807551829SerieA20
428.6701346131699181.063095167149788SerieB22
575.856400603668020.7252974837492654SerieB17
688.83919201004351.1211873678638784SerieA17
## simple Chart using series helper sintax
EChart(ctype="scatter",x=df[:x],y=df[:y],series=df[:series],symbolSize=df[:symbolSize])

Chart1

## simple Chart using series helper sintax
EChart(ctype="pie",x=[1000,2000,3300],names=["A","B","C"])

Chart2

## 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])
            ]
        ))

Chart3

echarts.jl's People

Contributors

antonioloureiro avatar

Stargazers

 avatar yottoo avatar

Watchers

James Cloos avatar  avatar

echarts.jl's Issues

Save EChart to disk (PNG or SVG export)

Dear Antonio,

ist is possible to export an EChart as PNG over even better as a vector graphic (SVG)? I am creating Sankey-Diagrams like in your example (https://randyzwitch.com/ECharts.jl/sankey) and would like to save the resulting image automatically.

In the EChart documentation I found this: https://ecomfe.github.io/echarts-doc/public/en/api.html#echartsInstance.getDataURL

but I don't know how to acess the getDataURL function via the Julia wrapper.

Any help or feature addition would be highly appreciated.

All the best, and keep up the good work
Andreas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.