From 5364a3e37e13691cc418ce56a00d98ecd0519e54 Mon Sep 17 00:00:00 2001 From: Cee Chen Date: Tue, 10 Oct 2023 14:47:36 -0700 Subject: [PATCH] Fix `showGridLines` type - convert to new API --- .../{category_chart.js => category_chart.tsx} | 4 ++-- .../views/elastic_charts/{pie_alts.js => pie_alts.tsx} | 6 +++--- src-docs/src/views/elastic_charts/{sizes.js => sizes.tsx} | 4 ++-- .../src/views/elastic_charts/{theming.js => theming.tsx} | 4 ++-- .../{theming_categorical.js => theming_categorical.tsx} | 8 ++++---- .../elastic_charts/{time_chart.js => time_chart.tsx} | 8 ++++---- 6 files changed, 17 insertions(+), 17 deletions(-) rename src-docs/src/views/elastic_charts/{category_chart.js => category_chart.tsx} (99%) rename src-docs/src/views/elastic_charts/{pie_alts.js => pie_alts.tsx} (98%) rename src-docs/src/views/elastic_charts/{sizes.js => sizes.tsx} (99%) rename src-docs/src/views/elastic_charts/{theming.js => theming.tsx} (96%) rename src-docs/src/views/elastic_charts/{theming_categorical.js => theming_categorical.tsx} (98%) rename src-docs/src/views/elastic_charts/{time_chart.js => time_chart.tsx} (96%) diff --git a/src-docs/src/views/elastic_charts/category_chart.js b/src-docs/src/views/elastic_charts/category_chart.tsx similarity index 99% rename from src-docs/src/views/elastic_charts/category_chart.js rename to src-docs/src/views/elastic_charts/category_chart.tsx index b7e8dadb94e..4416c6ca66c 100644 --- a/src-docs/src/views/elastic_charts/category_chart.js +++ b/src-docs/src/views/elastic_charts/category_chart.tsx @@ -169,7 +169,7 @@ const customTheme = { { id="left-axis" position={rotated ? 'bottom' : 'left'} tickFormat={tickFormat} - showGridLines + gridLine={{ visible: true }} /> @@ -190,7 +190,7 @@ export default () => { id="left-axis" position={rotated ? 'bottom' : 'left'} tickFormat={tickFormat} - showGridLines + gridLine={{ visible: true }} /> @@ -299,7 +299,7 @@ export default () => { /> { yAccessors={['y']} color={['black']} /> - + Number(d).toFixed(2)} /> diff --git a/src-docs/src/views/elastic_charts/theming_categorical.js b/src-docs/src/views/elastic_charts/theming_categorical.tsx similarity index 98% rename from src-docs/src/views/elastic_charts/theming_categorical.js rename to src-docs/src/views/elastic_charts/theming_categorical.tsx index 3f6e76f0027..fc20de73060 100644 --- a/src-docs/src/views/elastic_charts/theming_categorical.js +++ b/src-docs/src/views/elastic_charts/theming_categorical.tsx @@ -334,12 +334,12 @@ export default () => { Number(d).toFixed(2)} /> @@ -439,12 +439,12 @@ export default () => { Number(d).toFixed(2)} /> `} diff --git a/src-docs/src/views/elastic_charts/time_chart.js b/src-docs/src/views/elastic_charts/time_chart.tsx similarity index 96% rename from src-docs/src/views/elastic_charts/time_chart.js rename to src-docs/src/views/elastic_charts/time_chart.tsx index 0c18e1c67bd..f2af0d4168c 100644 --- a/src-docs/src/views/elastic_charts/time_chart.js +++ b/src-docs/src/views/elastic_charts/time_chart.tsx @@ -109,13 +109,13 @@ export default () => { id="bottom-axis" position="bottom" tickFormat={timeFormatter(niceTimeFormatByDay(1))} - showGridLines={chartType !== 'BarSeries'} + gridLine={{ visible: chartType !== 'BarSeries' }} tickPadding={0} /> Number(d).toFixed(2)} /> @@ -180,12 +180,12 @@ export default () => { id="bottom-axis" position="bottom" tickFormat={timeFormatter(niceTimeFormatByDay(1))} - ${chartType !== 'BarSeries' ? 'showGridLines' : ''} + gridLine={{ visible: ${chartType !== 'BarSeries'} }} /> Number(d).toFixed(2)} /> `}