kkpoon/elm-echarts/10.0.0

NOTE: the latest version is 10.0.1

ECharts

This is a ECharts chart option types collection and a helper to use ECharts WebComponent.

Why Web Component?

Please watch this video about Elm and Web Components by Richard Feldman

Create

echarts : EChartsConfig -> Html msg

create echarts DOM node

Definitions

= PieChart PieChartOption
| BarChart BarChartOption

the chart type

Helpers

convert the chart option to a string of json, which could apply to the echarts-webcomponent option attribute