Skip to content

Commit

Permalink
fix gridlines
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Sep 14, 2020
1 parent c599cb0 commit 9532136
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions x-pack/plugins/lens/public/xy_visualization/xy_expression.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ export function XYChart({
}}
/>

{yAxesConfiguration.map((axis, index) => (
{yAxesConfiguration.map((axis) => (
<Axis
key={axis.groupId}
id={axis.groupId}
Expand All @@ -469,7 +469,9 @@ export function XYChart({
title={getYAxesTitles(axis.series, axis.groupId)}
gridLine={{
visible:
index > 0 ? gridlinesVisibilitySettings?.yRight : gridlinesVisibilitySettings?.yLeft,
axis.groupId === 'right'
? gridlinesVisibilitySettings?.yRight
: gridlinesVisibilitySettings?.yLeft,
}}
hide={filteredLayers[0].hide}
tickFormat={(d) => axis.formatter?.convert(d) || ''}
Expand Down

0 comments on commit 9532136

Please sign in to comment.