chartjs zoom support + calculate macro

This commit is contained in:
Jan Prochazka
2022-01-02 19:01:14 +01:00
parent 866b8fdc25
commit 1c5fce1be1
6 changed files with 61 additions and 2 deletions

View File

@@ -55,6 +55,26 @@
text: chartTitle,
};
}
res['zoom'] = {
zoom: {
wheel: {
enabled: true,
},
pinch: {
enabled: true,
},
drag: {
enabled: true,
modifierKey: 'shift',
},
mode: 'x',
},
pan: {
enabled: true,
mode: 'x',
},
};
return res;
}