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

Ability to make 3d Choropleth Extrusions Out of the Box #188

Closed samgehret closed 6 years ago

samgehret commented 6 years ago

Add functionality where users can make 3d Chroropleth Extrusions as a standard feature.

Sample Code

Needed features:

pedro-rtm commented 6 years ago

Hi @samanpwbb , is there a timeline for this feature? The visual is already great but knowing this would be nice to factor it into our internal roadmaps. This feature is very important for our Architecture, Engineering and Construction flows, as it allows field workers to modify and publish datasets in studio to tilesets, and immediately have our PowerBI visuals update the rendering. Thanks for any info on this.

samgehret commented 6 years ago

@PedroRiveraTorresMoir scoped into our next release.

szilardhuber commented 6 years ago

@samgehret metric for fill-extrusion-height is meters in Mapbox GL JS API but for our sample dataset with US States and population we have to set it to 200000 meters to make the differences visible. Do you think we should add a 1000 multiplier to the height field (so user have to set 200 for 200.000 meters) or should we add this multiplier to the settings with a default value of 1000?

pedro-rtm commented 6 years ago

@samgehret how challenging would it be to create an alternative mode to choropleth height? The current version allows height to be defined by a client-side field. Another, very useful option would be to extract the height and base height properties of the vector source. This would allow us to, for example, be able to see a 3d building with different colors by floor based on occupancy.

samgehret commented 6 years ago

Closed this is live. @PedroRiveraTorresMoir tracking your new request here

https://github.com/mapbox/mapboxgl-powerbi/issues/250

otravers commented 5 years ago

I must be extremely dense, but while I see Extrusion Height and Pitch in the Format panel, I do not see Height in the Fields panel:

image

This is with PBI Desktop June 2019 and Mapbox 1.4. I even tried from a brand new PBIX file to make sure I had the latest version from the custom visual marketplace.

ryanbaumann commented 5 years ago

The Size data field with the Choropleth layer type is what you're looking for, I believe

otravers commented 5 years ago

Oh, I see, that worked. I suggest you revisit the default language displayed with Choropleths, which displays the following if you put data in the Size field but not the Color field:

image

The tooltip for Size should also be rewritten: image

ryanbaumann commented 5 years ago

Good catch, thanks @ortavers. Let's open a separate ticket to track that bug.