@@ -18,7 +18,7 @@ To configure the zoom and pan plugin, you can simply add new config options to y
1818 // Boolean to enable panning
1919 enabled: true ,
2020
21- // Panning directions. Remove the appropriate direction to disable
21+ // Panning directions. Remove the appropriate direction to disable
2222 // Eg. 'y' would only allow panning in the y direction
2323 mode: ' xy' ,
2424 rangeMin: {
@@ -35,7 +35,7 @@ To configure the zoom and pan plugin, you can simply add new config options to y
3535 // Useful for dynamic data loading
3636 onPan : function ({chart}) { console .log (` I was panned!!!` ); }
3737 },
38-
38+
3939 // Container for zoom options
4040 zoom: {
4141 // Boolean to enable zooming
@@ -51,9 +51,10 @@ To configure the zoom and pan plugin, you can simply add new config options to y
5151 // backgroundColor: 'rgb(225,225,225)'
5252 // },
5353
54- // Zooming directions. Remove the appropriate direction to disable
54+ // Zooming directions. Remove the appropriate direction to disable
5555 // Eg. 'y' would only allow zooming in the y direction
5656 mode: ' xy' ,
57+
5758 rangeMin: {
5859 // Format of min zoom range depends on scale type
5960 x: null ,
@@ -64,6 +65,11 @@ To configure the zoom and pan plugin, you can simply add new config options to y
6465 x: null ,
6566 y: null
6667 },
68+
69+ // Speed of zoom via mouse wheel
70+ // (percentage of zoom on a wheel event)
71+ speed: 0.1 ,
72+
6773 // Function called once zooming is completed
6874 // Useful for dynamic data loading
6975 onZoom : function ({chart}) { console .log (` I was zoomed!!!` ); }
0 commit comments