Comments (20)
Awesome, thanks. To get this working, I need to implement panning and zooming for the category scale. Right now only numerical scales are supported
from chartjs-plugin-zoom.
Awesome, thanks. To get this working, I need to implement panning and zooming for the category scale. Right now only numerical scales are supported
Any new about this?
from chartjs-plugin-zoom.
@Intelli32 can you post a fiddle?
from chartjs-plugin-zoom.
Sorry, I thought I would have time to add a fiddle but you replied so fast :) Updated my post
from chartjs-plugin-zoom.
Ok, but I get the same result even if I change labels to [1, 2, 3, 4, 5, 6]. But maybe this was not what you meant with "numerical scale"?
from chartjs-plugin-zoom.
I meant using a linear, logarithmic, or time type of scale for the x axis.
from chartjs-plugin-zoom.
My intention was actually to use a time scale so I got it working with that now. Thanks for the quick response!
from chartjs-plugin-zoom.
👍
from chartjs-plugin-zoom.
@etimberg I'm having a similar issue with panning using "time" scale x axis. I created a plunker here with an example.
from chartjs-plugin-zoom.
@etimberg Is sample I provided adequate? Were you able to reproduce?
from chartjs-plugin-zoom.
@beefo just had a look now. I think you need to include hammerjs to make this work
from chartjs-plugin-zoom.
Ah, yes, thank you @etimberg. Worked like a charm.
from chartjs-plugin-zoom.
@etimberg
I also am finding weird behaviour in the following codepen:
http://codepen.io/anon/pen/VbyZpL
This was the initial codepen I had found however tried addressing the solutions mentioned across the issues in this GitHub page however I still could not get it to work.
The bug/unwanted behaviour I find is that it appears that panning occurs on the opposite side of where the mouse pointer coordinates exist. Meaning if I place my cursor on the left-most side of the chart, it pans to the right-most side, whereas if I place my cursor on the right-most side of the chart, it pans to the left-most side of the chart.
from chartjs-plugin-zoom.
@Koshux I am seeing the same issue, and it seems to zoom in, to only show the graph region between two points. I was expecting it to work like panning in the y direction (which works great!).
Did you ever find an answer to this problem?
from chartjs-plugin-zoom.
@RPHolloway I have not yet found a solution for it unfortunately. Further progress is impeded due to #73 .
from chartjs-plugin-zoom.
anyone find the solution for panning on the x-axis.?
from chartjs-plugin-zoom.
@RPHolloway @Koshux guys any thing you got for the category scale? any hack or idea ?
from chartjs-plugin-zoom.
Hi @adeel3612 I was having the same problem, take e a look at #109
from chartjs-plugin-zoom.
Awesome, thanks. To get this working, I need to implement panning and zooming for the category scale. Right now only numerical scales are supported
Is this statement still true?
from chartjs-plugin-zoom.
Its been implemented years ago, closing.
from chartjs-plugin-zoom.
Related Issues (20)
- After zooming in too much, straight line shifts upwards HOT 1
- Zooming in over axis does not reset y-axis ticks back to initial limits HOT 1
- import zoomPlugin from 'chartjs-plugin-zoom' causing GET 500 Error but still working HOT 2
- Some ticks disappear when the X axis is moved.
- Zoom reset for scales built with suggestedMin and suggestedMax
- Graph grid and axes jittering when panning on one axis
- getZoomLevel doesn't appear to be exported HOT 1
- Overlap the axis
- Chartjs-plugin-zoom drag issue
- Reduce the number of dependencies HOT 2
- Inconsistent behavior when using limits and new data points
- Changing zoom mode (drag) resets the zoom level
- Pan function does not work properly when there are many points HOT 2
- Zooming in on a line chart on the category axis makes the line disappear
- Disable auto zoom-out after toggling datasets, when clicking on the legend.
- Zoom go to Infinity on any event on chart
- Expose "passive" boolean in the EventListenerOptions dictionary.
- Uncaught (in promise) TypeError: Cannot delete property '_stacks' of #<Chart>
- Logarithmic Zooming with mousewheel not centered
- Timeperiod not consistent whilst panning
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chartjs-plugin-zoom.