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],
},
"key": "__global_",
"match": Array [
[Function],
[Function],
],
"scales": Array [
"x",
null,
"__fixed/na-na/na-na/auto/linear/na",
],
},
},

View File

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