Skip to content

Commit

Permalink
Fixed an issue with only showing the first xrange axis label
Browse files Browse the repository at this point in the history
  • Loading branch information
cohansen committed Dec 21, 2023
1 parent 5150643 commit 6e3bb02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/timeline/RowYAxes.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
* but for now we're just setting the Y axes dynamically based on the data.
*/
const xRangeLayers = layers.filter(layer => layer.chartType === 'x-range');
const xRangeAxisG = gSelection.append('g').attr('class', axisClass);
xRangeAxisG.selectAll('*').remove();
let i = 0;
for (const layer of xRangeLayers) {
const resources = resourcesByViewLayerId[layer.id];
const xRangeAxisG = gSelection.append('g').attr('class', axisClass);
xRangeAxisG.selectAll('*').remove();
if ((layer as XRangeLayer).showAsLinePlot && resources && resources.length > 0) {
let domain: string[] = [];
Expand Down

0 comments on commit 6e3bb02

Please sign in to comment.