kkpoon/elm-echarts/9.0.0

NOTE: this package is not compatible with Elm 0.19.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

toJsonString : EChartsConfig -> String

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