@@ -24,29 +24,29 @@ export interface StylingContext {
2424 seriesColor ?: string ;
2525}
2626
27- // to convert an SeriesOption type of echarts into a more structured form aligned with LeafyGreen design standards,
27+ // to convert an SeriesOption type of echarts into a structured form more aligned with LeafyGreen design standards,
2828// where the 'type', 'name', and 'data' fields are explicitly required and typed,
29- // and all additional properties related to series styling are encapsulated within the 'stylingOptions ' object
29+ // and all additional series properties encapsulated within the 'options ' object
3030interface DisciplinedSeriesOption < EChartType extends SeriesOption > {
3131 type : NonNullable < EChartType [ 'type' ] > ;
3232 name : string ;
3333 data : NonNullable < EChartType [ 'data' ] > ;
34- stylingOptions : Omit < EChartType , 'type' | 'name' | 'data' > ;
34+ options : Omit < EChartType , 'type' | 'name' | 'data' > ;
3535}
3636
3737// all supported series options types disciplined and grouped into a single interface
3838export interface EChartSeriesOptions {
3939 line : DisciplinedSeriesOption < LineSeriesOption > ;
40- // TODO: to be leveraged in a follow-up PR that adds Bar chart support
40+ // TODO: to be leveraged in a follow-up PR to add Bar chart support
4141 bar : DisciplinedSeriesOption < BarSeriesOption > ;
4242}
4343
4444// a disciplined substitute for SeriesOption type of echarts limited to the ones supported here
4545export type EChartSeriesOption = Omit <
4646 ValuesOf < EChartSeriesOptions > ,
47- 'stylingOptions '
47+ 'options '
4848> &
49- ValuesOf < EChartSeriesOptions > [ 'stylingOptions ' ] ;
49+ ValuesOf < EChartSeriesOptions > [ 'options ' ] ;
5050
5151/**
5252 * TODO: This might need to be improved. `ComposeOption` appears to make most base option
0 commit comments