Skip to content

Commit

Permalink
fix: empty labels on debug state (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickofthyme authored Dec 7, 2020
1 parent 7e4512b commit 3c823fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/chart_types/xy_chart/state/selectors/get_debug_state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ function getAxes(axesGeoms: AxisGeometry[], axesSpecs: AxisSpec[], gridLines: Li
return acc;
}

const { ticks } = geom;
const labels = ticks.map(({ label }) => label);
const values = ticks.map(({ value }) => value);
const visibleTicks = geom.visibleTicks.filter(({ label }) => label !== '');
const labels = visibleTicks.map(({ label }) => label);
const values = visibleTicks.map(({ value }) => value);

const gridlines = gridLines
.reduce<Line[]>((accLines, { lineGroups }) => {
Expand Down

0 comments on commit 3c823fd

Please sign in to comment.