Commit 7840a2cb authored by lauraMon's avatar lauraMon Committed by Fatih Acet

Fixes scrollbar in time series

parent 461f4589
...@@ -122,7 +122,7 @@ export default { ...@@ -122,7 +122,7 @@ export default {
}, },
}, },
series: this.scatterSeries, series: this.scatterSeries,
dataZoom: this.dataZoomConfig, dataZoom: [this.dataZoomConfig],
}; };
}, },
dataZoomConfig() { dataZoomConfig() {
......
---
title: Fixes scroll handle icon in time series
merge_request: 16354
author:
type: fixed
...@@ -140,6 +140,16 @@ describe('Time series component', () => { ...@@ -140,6 +140,16 @@ describe('Time series component', () => {
expect(timeSeriesChart.vm.svgs[mockSvgName]).toBe(`path://${mockSvgPathContent}`); expect(timeSeriesChart.vm.svgs[mockSvgName]).toBe(`path://${mockSvgPathContent}`);
}); });
}); });
it('contains an svg object within an array to properly render icon', () => {
timeSeriesChart.vm.$nextTick(() => {
expect(timeSeriesChart.vm.chartOptions.dataZoom).toEqual([
{
handleIcon: `path://${mockSvgPathContent}`,
},
]);
});
});
}); });
describe('onResize', () => { describe('onResize', () => {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment