mapbox / mapboxgl-powerbi

Mapbox Visual for Power BI - High performance, custom map visuals for Power BI dashboards. This version of Mapbox Visual for Microsoft Power BI is no longer maintained. You can find the live and maintained version of the plugin at: https://github.com/starschema/mapboxgl-powerbi.
MIT License
127 stars 52 forks source link

Legend order of tooltips doesn't match model #324

Closed npnigro closed 1 year ago

npnigro commented 5 years ago

The tooltip fields are not sorted in the same order as they're placed in the model. It looks like the order is based on the order they've been added to the map. That's inconsistent with how the standard visualizations behave.

image

image

ghost commented 4 years ago

Has there been any update to this? How does one change the order? Even if I remove all the fields in the tooltips and add them in the order I want them displayed it does not change the order. There is even an option on each field to move them up and down and rearrange them using the options and it does not change the order.

Hugovdberg commented 3 years ago

I concur the order in which the fields are added does not matter. It appears there is a deterministic order based on the field names, although it is not just alphabetical order. If I rename a field it shows up in a different spot in the tooltip, and if I rename it back it goes back to the original spot. Without knowing the algorithm it might be hard to chose the field names such that they appear in the correct order.

martinedoesgis commented 3 years ago

+1 It seems it is not solved and it's an important feature for the UX of the map. At least being able to put one field as "name" of the popup so it appears on top would be a first step.