Disable zoom on Y axis
This commit is contained in:
parent
41e56101ae
commit
42f9fa264c
|
@ -138,7 +138,6 @@ const LogCanvas = ({ data, width, height, selectedFields }: Props) => {
|
||||||
legend: false,
|
legend: false,
|
||||||
zoom: {
|
zoom: {
|
||||||
x: { autoRange: true },
|
x: { autoRange: true },
|
||||||
y: { autoRange: true },
|
|
||||||
},
|
},
|
||||||
tooltipXLabel: 'Time (s)',
|
tooltipXLabel: 'Time (s)',
|
||||||
plugins: {
|
plugins: {
|
||||||
|
|
|
@ -127,13 +127,13 @@ const CompositeCanvas = ({ data, width, height }: Props) => {
|
||||||
});
|
});
|
||||||
|
|
||||||
const series = [{
|
const series = [{
|
||||||
name: 'Primary',
|
|
||||||
color: Colors.BLUE,
|
|
||||||
data: primary,
|
|
||||||
}, {
|
|
||||||
name: 'Secondary',
|
name: 'Secondary',
|
||||||
color: Colors.GREEN,
|
color: Colors.GREEN,
|
||||||
data: secondary,
|
data: secondary,
|
||||||
|
}, {
|
||||||
|
name: 'Primary',
|
||||||
|
color: Colors.BLUE,
|
||||||
|
data: primary,
|
||||||
}, {
|
}, {
|
||||||
name: 'Sync',
|
name: 'Sync',
|
||||||
color: Colors.RED,
|
color: Colors.RED,
|
||||||
|
@ -148,7 +148,6 @@ const CompositeCanvas = ({ data, width, height }: Props) => {
|
||||||
legend: false,
|
legend: false,
|
||||||
zoom: {
|
zoom: {
|
||||||
x: { autoRange: true },
|
x: { autoRange: true },
|
||||||
y: { autoRange: true },
|
|
||||||
},
|
},
|
||||||
yRange: { min: -1, max: 9 },
|
yRange: { min: -1, max: 9 },
|
||||||
tooltipXLabel: 'Event',
|
tooltipXLabel: 'Event',
|
||||||
|
|
Loading…
Reference in New Issue