fix(chart): disable click-drag-to-zoom on the read-only sim chart
This commit is contained in:
@@ -95,7 +95,10 @@ function options(width: number): uPlot.Options {
|
|||||||
return {
|
return {
|
||||||
width,
|
width,
|
||||||
height: props.height,
|
height: props.height,
|
||||||
cursor: { y: false },
|
// No y crosshair, and no click-drag-to-zoom (uPlot's drag.setScale defaults
|
||||||
|
// on): the chart is a read-only readout — the playhead drives time, not a
|
||||||
|
// drag-selected zoom region.
|
||||||
|
cursor: { y: false, drag: { x: false, y: false } },
|
||||||
scales: { x: { time: false } },
|
scales: { x: { time: false } },
|
||||||
series: [
|
series: [
|
||||||
{},
|
{},
|
||||||
|
|||||||
Reference in New Issue
Block a user