Commit e83c5fe8 authored by Dhiraj Bodicherla's avatar Dhiraj Bodicherla

Metrics dashboard crosshair should not snap

parent c2ee7845
......@@ -81,7 +81,7 @@ export const getTimeAxisOptions = ({ timezone = timezones.LOCAL } = {}) => ({
formatter: date => formatDate(date, { format: formats.shortTime, timezone }),
},
axisPointer: {
snap: true,
snap: false,
},
});
......
......@@ -411,6 +411,12 @@ describe('Time series component', () => {
});
});
describe('xAxis pointer', () => {
it('snap is set to false by default', () => {
expect(getChartOptions().xAxis.axisPointer.snap).toBe(false);
});
});
describe('are extended by `option`', () => {
const mockSeriesName = 'Extra series 1';
const mockOption = {
......
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