MPAndroidChart icon indicating copy to clipboard operation
MPAndroidChart copied to clipboard

How to customize chart to have a timeline-style bar with different colored segments?

Open noname6996-tta opened this issue 6 months ago • 0 comments

Hi, thank you for this amazing library!

I'm trying to create a custom mXAxis similar to the one in the attached image. It looks like:

Several colored segments along the line (e.g., pink from 3 to 4.5, cyan from 7 to 10.5).

Highlighted values like a filled circle at 11, and bold numbers at specific points (e.g., 8 and 13).

The values are positioned along the x-axis, ranging from 1 to 15.

Here is the image:

Image

Is it possible to create this kind of UI using MPAndroidChart? If not directly supported, could you suggest an approach or point me to which chart type would be best to customize for this?

Thanks a lot for your help!

noname6996-tta avatar Jun 10 '25 10:06 noname6996-tta