GithubHelp home page GithubHelp logo

Comments (20)

etimberg avatar etimberg commented on August 24, 2024 10

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.

quique1233 avatar quique1233 commented on August 24, 2024 2

@etimberg

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.

etimberg avatar etimberg commented on August 24, 2024

@Intelli32 can you post a fiddle?

from chartjs-plugin-zoom.

Intelli32 avatar Intelli32 commented on August 24, 2024

Sorry, I thought I would have time to add a fiddle but you replied so fast :) Updated my post

from chartjs-plugin-zoom.

Intelli32 avatar Intelli32 commented on August 24, 2024

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.

etimberg avatar etimberg commented on August 24, 2024

I meant using a linear, logarithmic, or time type of scale for the x axis.

from chartjs-plugin-zoom.

Intelli32 avatar Intelli32 commented on August 24, 2024

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.

etimberg avatar etimberg commented on August 24, 2024

👍

from chartjs-plugin-zoom.

beefo avatar beefo commented on August 24, 2024

@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.

beefo avatar beefo commented on August 24, 2024

@etimberg Is sample I provided adequate? Were you able to reproduce?

from chartjs-plugin-zoom.

etimberg avatar etimberg commented on August 24, 2024

@beefo just had a look now. I think you need to include hammerjs to make this work

from chartjs-plugin-zoom.

beefo avatar beefo commented on August 24, 2024

Ah, yes, thank you @etimberg. Worked like a charm.

from chartjs-plugin-zoom.

Koshux avatar Koshux commented on August 24, 2024

@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.

RPHolloway avatar RPHolloway commented on August 24, 2024

@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.

Koshux avatar Koshux commented on August 24, 2024

@RPHolloway I have not yet found a solution for it unfortunately. Further progress is impeded due to #73 .

from chartjs-plugin-zoom.

adeel3612 avatar adeel3612 commented on August 24, 2024

anyone find the solution for panning on the x-axis.?

from chartjs-plugin-zoom.

adeel3612 avatar adeel3612 commented on August 24, 2024

@RPHolloway @Koshux guys any thing you got for the category scale? any hack or idea ?

from chartjs-plugin-zoom.

mcelotti avatar mcelotti commented on August 24, 2024

Hi @adeel3612 I was having the same problem, take e a look at #109

from chartjs-plugin-zoom.

JamesMcMahon avatar JamesMcMahon commented on August 24, 2024

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.

kurkle avatar kurkle commented on August 24, 2024

Its been implemented years ago, closing.

from chartjs-plugin-zoom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.