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

Bar chart starting point non zero #905

Closed
keyv opened this issue Apr 1, 2016 · 6 comments
Closed

Bar chart starting point non zero #905

keyv opened this issue Apr 1, 2016 · 6 comments

Comments

@keyv
Copy link

keyv commented Apr 1, 2016

Can I set the initial point different from zero of stacked multiple bar chart?
Want to make smth like this (Waterfall chart) with optional negative Y values

@charlesa101
Copy link

Yeah i am having this issue too... non zero starting point in the API

@keyv any solution yet ?

@danielgindi
Copy link
Collaborator

We are working on it, but on master you can already set xAxis.axixMinValue

@danielgindi
Copy link
Collaborator

Though xAxis.axisMaxValue will not work yet

@charlesa101
Copy link

Thanks @danielgindi: i have a graph shown below i want it all to start at the min-value i.e -30 on the y-axis not 0 will that fix it ?

screen shot 2016-04-01 at 10 04 28 am

@ergihervi
Copy link

let leftAxis = yourGraphView.leftAxis
leftAxis.axisMinValue = -30

@danielgindi
Copy link
Collaborator

I though that you meant the X axis. On the Y axis as well you can set axisMinValue to whatever minimum you want.

By default, though, the chart will auto-calculate the min/max of your values, and show negative values correctly.

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