Pie Chart Options
This module helps to create Pie Chart Option.
ECharts official examples
{ title : Maybe ECharts.Style.TitleOption
, tooltip : Maybe ECharts.Style.TooltipOption
, legend : Maybe ECharts.Style.LegendOption
, series : Maybe (List PieSeriesOption)
}
describe the chart option of pie chart
defaultPieChartOption : PieChartOption
create a pie 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
, legendHoverLink : Maybe Basics.Bool
, hoverAnimation : Maybe Basics.Bool
, selectedMode : Maybe ECharts.Style.SelectedMode
, selectedOffset : Maybe Basics.Int
, clockwise : Maybe Basics.Bool
, startAngle : Maybe Basics.Float
, minAngle : Maybe Basics.Float
, roseType : Maybe Basics.Bool
, avoidLabelOverlap : Maybe Basics.Bool
, stillShowZeroSum : Maybe Basics.Bool
, radius : Maybe ( String
, String )
, center : Maybe ( String
, String )
, itemStyle : Maybe { emphasis : Maybe { shadowBlur : Maybe Basics.Int
, shadowOffsetX : Maybe Basics.Int
, shadowColor : Maybe String } }
, data : Maybe (List { value : Basics.Float
, name : String })
}
describe the data series of pie chart
defaultPieSeriesOption : PieSeriesOption
create a pie 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.
encodePieChartOption : PieChartOption -> Json.Encode.Value
encode the pie chart option to Json.Encode.Value