Skip to content

Commit

Permalink
Fix showGridLines type
Browse files Browse the repository at this point in the history
- convert to new API
  • Loading branch information
cee-chen committed Oct 10, 2023
1 parent be42a9b commit 5364a3e
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ const customTheme = {
<Axis
id="bottom-axis"
position={${rotated ? '"left"' : '"bottom"'}}
showGridLines={false}
gridLine={{ visible: false }}
/>
<Axis
id="left-axis"
Expand Down Expand Up @@ -221,7 +221,7 @@ ${removeEmptyLines(chartConfigurationToCopy)}`
<Axis
id="bottom-axis"
position={rotated ? 'left' : 'bottom'}
showGridLines={false}
gridLine={{ visible: false }}
/>
<Axis
id="left-axis"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export default () => {
id="left-axis"
position={rotated ? 'bottom' : 'left'}
tickFormat={tickFormat}
showGridLines
gridLine={{ visible: true }}
/>
</Chart>
</>
Expand Down Expand Up @@ -190,7 +190,7 @@ export default () => {
id="left-axis"
position={rotated ? 'bottom' : 'left'}
tickFormat={tickFormat}
showGridLines
gridLine={{ visible: true }}
/>
</Chart>
</>
Expand Down Expand Up @@ -299,7 +299,7 @@ export default () => {
/>
<Axis
id="left-axis"
showGridLines
gridLine={{ visible: true }}
position={${rotated ? "'bottom'" : "'left'"}}
${
formatted
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ class Sizes extends Component {
tickFormat={xAxisFormatter}
id="bottom-axis"
position="bottom"
showGridLines={false}
gridLine={{ visible: false }}
style={xAxisStyle}
/>
<Axis
Expand Down Expand Up @@ -347,7 +347,7 @@ class Sizes extends Component {
position="bottom"
title={'${xAxisTitle}'}
tickFormat={timeFormatter(niceTimeFormatByDay(1))}
showGridLines={false}
gridLine={{ visible: false }}
style={${JSON.stringify(xAxisStyle)}}
/>
<Axis
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,11 @@ export default () => {
yAccessors={['y']}
color={['black']}
/>
<Axis id="bottom-axis" position="bottom" showGridLines />
<Axis id="bottom-axis" position="bottom" gridLine={{ visible: true }} />
<Axis
id="left-axis"
position="left"
showGridLines
gridLine={{ visible: true }}
tickFormat={(d) => Number(d).toFixed(2)}
/>
</Chart>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,12 @@ export default () => {
<Axis
id="bottom-axis"
position="bottom"
showGridLines={chartType !== 'BarSeries'}
gridLine={{ visible: chartType !== 'BarSeries' }}
/>
<Axis
id="left-axis"
position="left"
showGridLines
gridLine={{ visible: true }}
tickFormat={(d) => Number(d).toFixed(2)}
/>
</Chart>
Expand Down Expand Up @@ -439,12 +439,12 @@ export default () => {
<Axis
id="bottom-axis"
position="bottom"
${chartType !== 'BarSeries' ? 'showGridLines' : ''}
gridLine={{ visible: ${chartType !== 'BarSeries'} }}
/>
<Axis
id="left-axis"
position="left"
showGridLines
gridLine={{ visible: true }}
tickFormat={(d) => Number(d).toFixed(2)}
/>
</Chart>`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ export default () => {
id="bottom-axis"
position="bottom"
tickFormat={timeFormatter(niceTimeFormatByDay(1))}
showGridLines={chartType !== 'BarSeries'}
gridLine={{ visible: chartType !== 'BarSeries' }}
tickPadding={0}
/>
<Axis
id="left-axis"
position="left"
showGridLines
gridLine={{ visible: true }}
tickFormat={(d) => Number(d).toFixed(2)}
/>
</Chart>
Expand Down Expand Up @@ -180,12 +180,12 @@ export default () => {
id="bottom-axis"
position="bottom"
tickFormat={timeFormatter(niceTimeFormatByDay(1))}
${chartType !== 'BarSeries' ? 'showGridLines' : ''}
gridLine={{ visible: ${chartType !== 'BarSeries'} }}
/>
<Axis
id="left-axis"
position="left"
showGridLines
gridLine={{ visible: true }}
tickFormat={(d) => Number(d).toFixed(2)}
/>
</Chart>`}
Expand Down

0 comments on commit 5364a3e

Please sign in to comment.