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

Dynamic minimum Y values #48

Closed
dakboard opened this issue Nov 6, 2017 · 7 comments
Closed

Dynamic minimum Y values #48

dakboard opened this issue Nov 6, 2017 · 7 comments

Comments

@dakboard
Copy link

dakboard commented Nov 6, 2017

I have a line chart where the minimum Y value is 10,000 and the maximum Y value is 13,000. It would be awesome if frappe automatically adjusted the Y values accordingly. It currently always starts at 0, creating a lot of empty space, and an uninteresting chart.

Thanks!

@pratu16x7
Copy link
Contributor

pratu16x7 commented Nov 6, 2017

@dannyk660 Zero baselines are intentional, every data point on the graph is meant to be at its absolute (as opposed to relative) value: http://www.storytellingwithdata.com/blog/2012/09/bar-charts-must-have-zero-baseline.

But, I agree that this may not be true for line charts; we aren't experts in data science, so we'd be happy to learn and incorporate stuff that's legit in data representation :)

@dakboard
Copy link
Author

dakboard commented Nov 6, 2017

Sure, thanks for your response! Here's an example of what I'm looking at:

https://imgur.com/FkQSYjt

By starting at zero, it's pretty hard to discern any variations in the data, since all the action happens from 13k to 19k.

Thanks again!

@pratu16x7
Copy link
Contributor

Cool! Yeah, looks like this could use a more dynamic range. We'll put this right up there with the tiny fractions feature. Cheers!

@pratu16x7
Copy link
Contributor

So here's the update.

Line charts now have a dynamic minimum value🎉; check them out on the demo! (The set in the screen below has a 10-70 range)
screen shot 2017-11-14 at 3 15 18 am

It also works on all negatives
screen shot 2017-11-14 at 3 34 32 am

Anyone interested can check intervals.js for the new generic intervalling ;) We also support fractions.

@pratu16x7
Copy link
Contributor

Do reopen in case you find any issues. Closing as fulfilled.

@mrto1
Copy link

mrto1 commented Feb 7, 2020

It's still not adjusting for me. For example, data between 0.29 and 0.31, y axis has a range between 0.20 and 0.40. Thank you.

@torian257x
Copy link

torian257x commented Nov 30, 2020

@pratu16x7 is there a way to disable this feature? e.g. I DONT want that it sets the range dynamically...

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

No branches or pull requests

3 participants