Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to achieve horizontal scrollable chart components in react-chart-js-2? #355

Closed
adithyamaheshb opened this issue Nov 17, 2018 · 3 comments

Comments

@adithyamaheshb
Copy link

adithyamaheshb commented Nov 17, 2018

I am trying to create a horizontal x-axis scrollable bar chart. Are there any props or methods to achieve this? Please, help me out.

@prophet60091
Copy link

Import the plugin https://github.com/chartjs/chartjs-plugin-zoom to your project. Then set up the options to use it.

add the options to your own as per the description on the plugin's README. I have some problems getting it to work depending on what my scales are set to, but that isn ot an issue with the react component, just ChartJs.

@adithyamaheshb
Copy link
Author

Thank you, for the suggestion!!

@iamdevlinph
Copy link

@adithyamaheshb were you able to achieve this using the zoom plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants