kkpoon / elm-echarts / 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


type EChartsConfig
    = 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