Skip to content

Commit

Permalink
feat(dedicated): add zoom on traffic graph
Browse files Browse the repository at this point in the history
ref: UXCT-602

Signed-off-by: Stephanie Moallic <stephanie.moallic@corp.ovh.com>
  • Loading branch information
Stephanie Moallic committed Jun 21, 2024
1 parent 873b7cc commit f8e8281
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@ export const CHART = {
},
},
},
// Zoom option when user scroll the mouse wheel
zoom: {
limits: {
y: { min: 0, max: 'original' },
},
zoom: {
wheel: {
enabled: true,
},
pinch: {
enabled: true,
},
mode: 'xy',
},
},
},
scales: {
y: {
Expand Down

0 comments on commit f8e8281

Please sign in to comment.