patrykandpatrick / vico

A light and extensible chart library for Android.
https://patrykandpatrick.com/vico/wiki
Apache License 2.0
2.07k stars 125 forks source link

Order of persistent marker is ignored #858

Open fax-sma opened 3 weeks ago

fax-sma commented 3 weeks ago

How to reproduce

Add two persistent marker to one chart that overlap.

Observed behavior

The order of the markers is not preserved from the original map.

Expected behavior

I would like to control the order of the markers by the order of the map I put into the chart.

Vico version(s)

1.15.0

Android version(s)

All

Additional information

I have looked down into BasicChart and found that the holder for persistent markers is a HashMap. By changing it to a LinkedHashMap the expected behavior could be achieved.