Commit b9dda001 authored by Enrique Alcántara's avatar Enrique Alcántara

Merge branch 'metrics-dashboard-crosshair-shouldnt-snap' into 'master'

Metrics dashboard crosshair should not snap

See merge request gitlab-org/gitlab!34582
parents 0ae2aa1c e83c5fe8
......@@ -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