MPAndroidChart - Linechart - shrink part of the graph with no X values
Asked Answered
J

1

7

Is it possible to do something like this:

enter image description here

? I have in the app LineChart with the time values (seconds) on X axis and temperature on Y axis.

And it's possible that I don't have a data for some bigger time interval (day and more for example) and it will not be very user frinedly if user has to swipe so much back. So I want to create this "shortcut" or somehow "delete" empty part of the graph (with no X values). Is is possible? Maybe there don't have to be this gap but I need to contine from time "10:30" to time "14:20" in one graph without big scrolling.

Do you have some suggestions?

Jonson answered 26/6, 2018 at 13:31 Comment(3)
Or is it possible to do with another graph library? For example github.com/AnyChart/AnyChart-Android or github.com/jjoe64/GraphView ?Jonson
I hope this will be helpful for you.. hereFireplace
This is a very good chart. Would you mind sharing to code to help fellow developers?Exanthema
T
0

Have a look at this and this

There is a way to get a continued graph and don't have an empty gap in between however the way you are looking for kind of seems like a drag because even though you explicitly dont add the empty data to dataset, it is meant to work like a continued thing. Hope this helps, cheers

Tungsten answered 16/7, 2018 at 15:29 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.