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

problems using autoScaleMinMaxEnabled #453

Closed
tila77 opened this issue Oct 6, 2015 · 2 comments
Closed

problems using autoScaleMinMaxEnabled #453

tila77 opened this issue Oct 6, 2015 · 2 comments

Comments

@tila77
Copy link

tila77 commented Oct 6, 2015

Hello,
I try to auto scale the y-axis for an LineChart. If I set the option autoScaleMinMaxEnabled, followed by an notifyDataSetChanged no auto scale occurs.

Also toggeling autoScaleMinMaxEnabled in ChartsDemo seems not to work. Is there a special trick?

Many thanks! - Tini

@danielgindi
Copy link
Collaborator

You see the auto-scale in action when scrolling the chart sideways. It scales the Y axis depending on the data that is in the visible area.

@tila77
Copy link
Author

tila77 commented Oct 7, 2015

Hello Daniel,

I don't know what I'm doing wrong. Using the ChartDemo-App I have the following behavior:

  • LineChart (LineChart1ViewController) - If I change the data range the y-axis don't scale
  • BarChartViewController - If I change the data range the y-axis scale - also after toggeling the property toggleAutoScaleMinMax

Also in my own application I have an unexpected behavior - adding a dataset with values 900 +/- 10 the y-axis has a range of 0 .. 1000. Do I have a wrong understanding? I suggest the behavior is, that after setting toggleAutoScaleMinMax the y-axis will have a range such as 800 ... 900.

I'm very impressed of the charts created by using ios-charts - so I want to use these library!

Thanks for help! - Tino

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

2 participants