diff --git a/index.html b/index.html index 2e0c143..bf862d4 100644 --- a/index.html +++ b/index.html @@ -96,15 +96,7 @@ sourceItem: { Location_Emplacement: "Quebec" } - }], - chartjsOptions: { - responsive: true, - plugins: { - legend: { - display: false, - } - } - } + }] }; const DATA_INPUT_LINE_2 = { @@ -178,15 +170,7 @@ sourceItem: { Location_Emplacement: "Quebec" } - }], - chartjsOptions: { - responsive: true, - plugins: { - legend: { - display: false, - } - } - } + }] }; const DATA_INPUT_LINE_3 = { @@ -221,15 +205,7 @@ display: "Lake info 1", }, { display: "Lake info 2", - }], - chartjsOptions: { - responsive: true, - plugins: { - legend: { - display: false, - } - } - } + }] }; const DATA_INPUT_2 = { @@ -321,15 +297,7 @@ OBJECTID: 56880 } ] - }], - chartjsOptions: { - responsive: true, - plugins: { - legend: { - display: false - } - } - } + }] }; const DATA_INPUT_3 = { @@ -413,15 +381,7 @@ OBJECTID: 56880 } ] - }], - chartjsOptions: { - responsive: true, - plugins: { - legend: { - display: false - } - } - } + }] }; const DATA_INPUT_4 = { @@ -505,15 +465,7 @@ OBJECTID: 56880 } ] - }], - chartjsOptions: { - responsive: true, - plugins: { - legend: { - display: false - } - } - } + }] }; const DATA_INPUT_5 = { @@ -596,15 +548,7 @@ "label": "Basketball", "location": "Montreal" }] - }], - chartjsOptions: { - responsive: true, - plugins: { - legend: { - display: false, - } - } - } + }] }; const OPTIONS_NATIVE_1 = { diff --git a/src/chart-types.ts b/src/chart-types.ts index 6f81fd7..5257487 100644 --- a/src/chart-types.ts +++ b/src/chart-types.ts @@ -139,13 +139,13 @@ export type GeoChartDefaultColors = { * Options for the Slider Axis component */ export type GeoChartOptionsAxis = { - type: 'linear' | 'logarithmic' | 'category' | 'time' | 'timeseries' | undefined; property: string; - label: string; - tooltipSuffix: string; + type?: 'linear' | 'logarithmic' | 'category' | 'time' | 'timeseries'; + label?: string; usePalette?: boolean; - paletteBackgrounds: string[]; - paletteBorders: string[]; + paletteBackgrounds?: string[]; + paletteBorders?: string[]; + tooltipSuffix?: string; }; /**