Android Question [solved] Is it possible to use the xChart library in a container that allows horizontal scrolling?

ThePuiu

Active Member
Licensed User
Longtime User
I need to display some larger charts that are hard to see on a phone. For this reason I was wondering if it could be displayed in a container that would allow the scroll to be made. From the tests I did not find a container in which to insert the xChart.
 

Mahares

Expert
Licensed User
Longtime User
need to display some larger charts that are hard to see on a phone.
@DonManfred created a library . Here is a link to it.
It allows you to expand the xChart to see it better on a smaller device
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
It works on a HorizontalScrollView.
But, you must disable the ValuesShow option to disable the horizontal scrolling in the chart, which interferes with the scrolling of the HorizontalScrollView.

Attached a small test project.
 

Attachments

  • ChartOnHorizontalScrollView.zip
    11.2 KB · Views: 219
Upvote 0
Top