Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
jerryr125
Helper IV
Helper IV

Shape Map Visualization - working with Body Chart

Hi - I am trying to use the Shape Map visualization.  I created a svg file with layers (body chart).  

1. What is the best way to convert the SVG file (Abobe Illustrator) to .json file or a .topjson file ?

2. I tried to add it to the Power BI app using the Shape Map visualization and   the image does not appear.

Is there any tricks/steps I need to be aware off ?

 

Thanks - jerryr

 

Note: Synoptic Panel will not work due to licensing.

1 ACCEPTED SOLUTION

Hi @jerryr125
Thanks for the follow-up question.

Microsoft documentation confirms that Power BI Shape Maps only support custom TopoJSON files containing polygon or multipolygon geometry. https://learn.microsoft.com/en-gb/power-bi/visuals/power-bi-map-visualizations-overview 

 

Adobe Illustrator can only export SVG files and cannot convert them to GeoJSON/TopoJSON. For Power BI Shape Maps, the SVG must be converted using a GIS tool that outputs Polygon or MultiPolygon geometry. A commonly used and reliable option is Mapshaper which is already suggested by the community member @JamieHolding,  which allows you to upload the SVG, visually confirm closed and filled shapes, and export directly to GeoJSON (and TopoJSON if needed).

After conversion, please ensure the GeoJSON contains only Polygon/MultiPolygon types and that region names exactly match your Power BI data (case-sensitive). Once validated, the file should render correctly in the Shape Map visual.

Thanks again for using the Microsoft Fabric Community Forum.

View solution in original post

9 REPLIES 9
jerryr125
Helper IV
Helper IV

Hi - unforrtunately that did not work - any other recommendations ? Jerry

Hi @jerryr125,

Thank you for reaching out to the Microsoft Fabric Community Forum. Also, thanks to @JamieHolding,  for his inputs on this thread.

There is a known limitation with the Shape Map visual in Power BI that explains the behaviour you are seeing. Shape Map is designed for geographic polygon data and does not reliably support illustration-based SVGs such as body or anatomical charts. When an SVG converts into line-based or unsupported geometry, Power BI can load the custom JSON but silently skips rendering the shapes, which results in a blank visual without showing an error.

To work around this, the SVG needs additional preparation before conversion. Each body part must be a closed, filled polygon (not strokes or open paths), with all masks and effects removed, and each region clearly named. After cleaning the SVG, convert it to GeoJSON first and confirm the geometry is Polygon or MultiPolygon, then convert it to TopoJSON and import it into the Shape Map. Finally, ensure the region names in the JSON exactly match the values used in your data model (case-sensitive). With these steps, the Shape Map should render as expected.

Refer this link:
https://learn.microsoft.com/en-us/power-bi/visuals/desktop-shape-map 

Hope that clarifies. Let us know if you have any doubts regarding this. We will be happy to help.

Thank you for using the Microsoft Fabric Community Forum.

Hi - 
Thank you very much for your help.

Ok - we have done the following:

- Took the the body chart and traced each 'part' as a layer.  Each layer has an unique name and the name matches the data body part name.  We did the image in Adobe Ilustrator.

Where I am struggling is the following step:


"After cleaning the SVG, convert it to GeoJSON first and confirm the geometry is Polygon or MultiPolygon, then convert it to TopoJSON and import it into the Shape Map."

 

Basically how to I get the SVG from Adobe Illustrator (any tricks on saving the file) and  convert it to GeoJSON first and confirm the geometry is Polygon or MultiPolygon, then convert it to TopoJSON ?

Any assistance on next steps would be appreciated ! Thank you - Jerry

Hi
Thanks for the detailed update, that really helps clarify where things are getting stuck.

The key point here is that Adobe Illustrator can only produce a clean SVG, but it cannot generate GeoJSON or TopoJSON directly. That conversion step must be done using a separate tool. Shape Map in Power BI is very strict and only renders polygon-based geometry, so even though the SVG looks correct visually, it still needs to be converted and validated as Polygon or MultiPolygon data before Power BI can display it.

The recommended next steps are export the SVG from Illustrator using Save As → SVG (ensuring all body parts are filled, closed paths with unique names and no strokes or effects). Then, open that SVG in a conversion tool and first export it to GeoJSON so you can validate the geometry. When you open the GeoJSON file, each body part should appear as "type": "Polygon" or "MultiPolygon" with a matching property name. If any part comes through as a line or stroke, Shape Map will not render it. Once the GeoJSON is confirmed as polygon-based, convert it to TopoJSON, import it into the Shape Map visual, and bind your data column to the matching region names (case-sensitive).

Thanks again for using the Microsoft Fabric Community Forum.

Hi - Thank you for the feedback and follow-up.

The question now becomes - what is a good conversion tool to convert the file from SVG to GeoJSON ? 

Any assistance is appreciated - thanks - Jerry

Hi @jerryr125
Thanks for the follow-up question.

Microsoft documentation confirms that Power BI Shape Maps only support custom TopoJSON files containing polygon or multipolygon geometry. https://learn.microsoft.com/en-gb/power-bi/visuals/power-bi-map-visualizations-overview 

 

Adobe Illustrator can only export SVG files and cannot convert them to GeoJSON/TopoJSON. For Power BI Shape Maps, the SVG must be converted using a GIS tool that outputs Polygon or MultiPolygon geometry. A commonly used and reliable option is Mapshaper which is already suggested by the community member @JamieHolding,  which allows you to upload the SVG, visually confirm closed and filled shapes, and export directly to GeoJSON (and TopoJSON if needed).

After conversion, please ensure the GeoJSON contains only Polygon/MultiPolygon types and that region names exactly match your Power BI data (case-sensitive). Once validated, the file should render correctly in the Shape Map visual.

Thanks again for using the Microsoft Fabric Community Forum.

Hi @jerryr125,

Just checking in to see if the issue has been resolved on your end. If the earlier suggestions helped, that’s great to hear! And if you’re still facing challenges, feel free to share more details happy to assist further.

Thank you.

Hi @jerryr125

Just wanted to follow up. If the shared guidance worked for you, that’s wonderful hopefully it also helps others looking for similar answers. If there’s anything else you'd like to explore or clarify, don’t hesitate to reach out.

Thank you.

JamieHolding
Resolver I
Resolver I

https://mapshaper.org/

 

Is probably a good place to start, I do find the visualisation is a bit finnicky so might take a bit of tweaking.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.