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

v2.0.0 dev does not support type.extend #1582

Closed
GabrielUlici opened this issue Oct 28, 2015 · 4 comments
Closed

v2.0.0 dev does not support type.extend #1582

GabrielUlici opened this issue Oct 28, 2015 · 4 comments

Comments

@GabrielUlici
Copy link

No description provided.

@tannerlinsley
Copy link
Contributor

That is because you no longer extend chart types. You extend the components that make them. For instance. A simple bar graph is made up of one linear scale, one category scale and a bar controller which uses the bar element. These components are extendable. We'll be coming out with docs on all of this very soon. What are you trying to change?

@GabrielUlici
Copy link
Author

i would like to have a bar graph on horizontal.

@tannerlinsley
Copy link
Contributor

Cool. That's a change were planning on including soon. The work would need to be done in scale.category.js. Right now it only knows how to be horizontal. The. You could just switch the scales around on a bar chart.

@etimberg
Copy link
Member

I updated the docs for creating scales / new chart types. https://github.com/nnnick/Chart.js/blob/v2.0-dev/docs/07-Advanced.md

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