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?

Pepa Zapletal
  • 2,879
  • 3
  • 39
  • 69
  • Or is it possible to do with another graph library? For example https://github.com/AnyChart/AnyChart-Android or https://github.com/jjoe64/GraphView ? – Pepa Zapletal Jul 11 '18 at 12:54
  • I hope this will be helpful for you.. [here](https://stackoverflow.com/questions/38326306/mp-android-chart-how-to-fix-the-number-of-x-axis-values-in-the-line-chart) – Pasindu Weerakoon Jul 16 '18 at 02:48
  • This is a very good chart. Would you mind sharing to code to help fellow developers? – Thracian Jul 17 '18 at 16:23

1 Answers1

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

Kashif K.
  • 88
  • 1
  • 9