chartjs-plugin-zoom: Pan & zoom not working for x-axis
Hi, I am trying to get pan & zoom working but I am not able to do that on X-axis even though I have the following settings. The provided examples works fine and I am trying to mimic those.
pan: { enabled: true, mode: 'xy' limits: { max: 10, min: 0.5 } },
zoom: { enabled: true, mode: 'xy' limits: { max: 10, min: 0.5 } },
What are the common mistakes when this happens? Fiddle: https://jsfiddle.net/jm1adysp/3/
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 20 (6 by maintainers)
Commits related to this issue
- #109 #8 pan workaround for line chart with category as x axis — committed to mcelotti/chartjs-plugin-zoom by mcelotti 6 years ago
- #109 #8 pan workaround for line chart with category as x axis — committed to mcelotti/chartjs-plugin-zoom by mcelotti 6 years ago
- #109 #8 pan workaround for line chart with category as x axis — committed to mcelotti/chartjs-plugin-zoom by mcelotti 6 years ago
- #109 #8 pan workaround for line chart with category as x axis — committed to mcelotti/chartjs-plugin-zoom by mcelotti 6 years ago
Awesome, thanks. To get this working, I need to implement panning and zooming for the category scale. Right now only numerical scales are supported
@etimberg
Any new about this?