Disable zoom on Y axis

This commit is contained in:
Piotr Rogowski 2021-12-17 00:16:07 +01:00
parent 41e56101ae
commit 42f9fa264c
No known key found for this signature in database
GPG Key ID: F40F61D5587F5673
2 changed files with 4 additions and 6 deletions

View File

@ -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: {

View File

@ -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',