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

Handle color selection like in default Power BI charts #212

Closed otravers closed 5 years ago

otravers commented 6 years ago

Currently Mapbox lets us define Mid / Med / Max / Highlight colors. First, that language is not consistent with PBI's default charts (Minimum / Center / Maximum). I think custom charts should remain as closely aligned with PBI defaults as possible in order to reduce the learning curve.

More importantly, Power BI default charts offer the ability to diverge colors by value (provided you select the Diverging option), which is handy when you have outliers that would otherwise overwhelm how everything else is color coded. It's also nice to be able to define where the center is (e.g. 0 if you have a measure with negative and positive values). Here's what that looks like, please consider doing something similar:

image

Below is a choropleth example using the default filled map, see how the minimum / center / maximum values were handpicked based on the actual data. Power BI will soon add the ability to drive chart options with DAX functions, which will make this even more powerful and customizable (e.g. decide that the center color is the median, mean, or something else).

image

See: https://docs.microsoft.com/en-us/power-bi/service-tips-and-tricks-for-color-formatting#use-diverging-color-scales

ryanbaumann commented 6 years ago

Cc/ @samgehret

samgehret commented 5 years ago

Acceptance Criteria:

samgehret commented 5 years ago

This is live in the marketplace @otravers