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)} /> `}