Bar Chart Options
This module helps to create Bar Chart Option.
ECharts official examples
{ title : Maybe ECharts.Style.TitleOption
, color : Maybe (List String)
, tooltip : Maybe ECharts.Style.TooltipOption
, legend : Maybe ECharts.Style.LegendOption
, xAxis : Maybe ECharts.Style.XAxisOption
, yAxis : Maybe ECharts.Style.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.
{ name : Maybe String
, barGap : Maybe Basics.Int
, data : Maybe (List { value : Basics.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.
encodeBarChartOption : BarChartOption -> Json.Encode.Value
encode the Bar chart option to Json.Encode.Value