kkpoon/elm-echarts/10.0.1

ECharts.BarChart

Bar Chart Options

This module helps to create Bar Chart Option.

ECharts official examples

Definitions

type alias BarChartOption =
{ title : Maybe TitleOption
, color : Maybe (List String)
, tooltip : Maybe TooltipOption
, legend : Maybe LegendOption
, xAxis : Maybe XAxisOption
, yAxis : Maybe YAxisOption
, series : Maybe (List BarSeriesOption)
}

describe the chart option of Bar chart

defaultBarChartOption : BarChartOption

create a Bar chart option of for default value

This function creates an All-Nothing TitleOption. ECharts applies the default value when the option attribute is not specified.

type alias BarSeriesOption =
{ name : Maybe String
, barGap : Maybe Int
, data : Maybe (List { value : Float })
}

describe the data series of Bar chart

defaultBarSeriesOption : BarSeriesOption

create a Bar chart series option of for default value

This function creates an All-Nothing TitleOption. ECharts applies the default value when the option attribute is not specified.

Encoders

encodeBarChartOption : BarChartOption -> Value

encode the Bar chart option to Json.Encode.Value