Timeseries: Improve cursor Y sync behavior (#50740)

This commit is contained in:
Ryan McKinley 2022-06-13 22:16:49 -07:00 committed by GitHub
parent 1bb2d2599c
commit 4e4686001b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 9 deletions

View File

@ -77,13 +77,9 @@ Object {
"pub": [Function], "pub": [Function],
}, },
"key": "__global_", "key": "__global_",
"match": Array [
[Function],
[Function],
],
"scales": Array [ "scales": Array [
"x", "x",
null, "__fixed/na-na/na-na/auto/linear/na",
], ],
}, },
}, },

View File

@ -465,10 +465,8 @@ export const preparePlotConfigBuilder: UPlotConfigPrepFn<{
return true; return true;
}, },
}, },
// ??? setSeries: syncMode === DashboardCursorSync.Tooltip, scales: [xScaleKey, yScaleKey],
//TODO: remove any once https://github.com/leeoniya/uPlot/pull/611 got merged or the typing is fixed // match: [() => true, (a, b) => a === b],
scales: [xScaleKey, null as any],
match: [() => true, () => true],
}; };
} }