Skip to content

Commit

Permalink
Add a comment
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Jul 20, 2021
1 parent 4c8a25d commit 5933ab7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions x-pack/plugins/lens/public/xy_visualization/to_expression.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ export const buildExpression = (
verticalAlignment: state.legend.verticalAlignment
? [state.legend.verticalAlignment]
: [],
// ensure that even if the user types more than 5 columns
// we will only show 5
floatingColumns: state.legend.floatingColumns
? [Math.min(5, state.legend.floatingColumns)]
: [],
Expand Down

0 comments on commit 5933ab7

Please sign in to comment.