How to highlight multiple values ​​using MPAndroidChart?

Can I highlight multiple values ​​in MPAndroidChart ?

I highlight one value thanks to: barChart.highlightValue (high [0]), but how to highlight 2 values.

thanks for your reply

+4
source share
1 answer

Yes it is possible.

There is a method in the library called highlightValues(Highlight[] highs).

This method allows you to provide an array of objects Highlightto select multiple values.

Example:

Highlight h1 = new Highlight(...); // 1st value to highlight
Highlight h2 = new Highlight(...); // 2nd value to highlight

chart.highlightValues(new Highlight[] {h1, h2});

Detailed guide can be found here . p>

+8
source

Source: https://habr.com/ru/post/1623776/


All Articles