Skip to content

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

Description

@noname6996-tta

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!

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions