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

Negative values on Bar chart #225

Closed
pantera160 opened this issue Oct 9, 2015 · 5 comments
Closed

Negative values on Bar chart #225

pantera160 opened this issue Oct 9, 2015 · 5 comments

Comments

@pantera160
Copy link

When you enter negative values into the Bar chart these values are not shown nicely.
I know this feature was not included in Chart.js v1.0 on which angular-chart.js is based but since this should be included in Chart.js v2.0 I was wondering if anyone might have gotten a fix for this.

Simply using chart.js v2.0 instead of v1.0 does sadly not work (for me anyway).

Thanks in advance!

@jtblin
Copy link
Owner

jtblin commented Oct 17, 2015

You can follow #123 for chart 2.0. It's still in alpha so probably a while before I can port this library to use 2.0.

@jtblin jtblin closed this as completed Oct 17, 2015
@KeweiCodes
Copy link

Hey @pantera160 , it seems that there is a way this could work with chartv1.0.2 as shown here: https://jsfiddle.net/ahrex/jy8nnaem/ But I'm still having trouble getting this to work with angular-chart 😞

@davidsheart02
Copy link

The chart version bundled with angular chart doesn't include the barbeginatorigin property. That's why it works in the fiddle but not with angular-chart. Even though they both are labelled as chartv1.0.2 the property is missing from angular-chart.

@jtblin
Copy link
Owner

jtblin commented Nov 23, 2015

That's weird, it should pick up 1.0.2 if you install with bower or npm.

@davidsheart02
Copy link

The chart.js used by the fiddle appears to be a specific pull from a specific commit. The conversation here mentions a pull request that I believe contains the extra property: chartjs/Chart.js#9

I think angular-chart.js is doing the picking up the right version according to the bower specs and the one in the fiddle is using a chartv1.0.2 with the special property added. Looking at the git repo for Chart.js, the barbeginatorigin property doesn't exist in the current master branch nor in the chart.js under the v1.0.2 tag.

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

4 participants