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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
joemensor
Helper I
Helper I

New Choropleth visual

This is a strange one. I am trying to use the new Choropleth visual and reference my own topoJSON files, however when I point the visual to urls which host my .json files, the requests fail and I see the invalid JSON file message. I have even hosted the json files from the sample.pbix and these are not served correctly either.

 

The sample files are hosted here:

 

https://uat.gramener.com/static/c3/US_adm1.json

https://uat.gramener.com/static/c3/US_adm2.json

 

What is significant about these URLs? I am hosting my files on an HTTPS server and when I browse to the files, everything is fine. I have also attempted to re-issue the requests through fiddler and it works, whats going on?

 

3 REPLIES 3
Eric_Zhang
Employee
Employee


@joemensor wrote:

This is a strange one. I am trying to use the new Choropleth visual and reference my own topoJSON files, however when I point the visual to urls which host my .json files, the requests fail and I see the invalid JSON file message. I have even hosted the json files from the sample.pbix and these are not served correctly either.

 

The sample files are hosted here:

 

https://uat.gramener.com/static/c3/US_adm1.json

https://uat.gramener.com/static/c3/US_adm2.json

 

What is significant about these URLs? I am hosting my files on an HTTPS server and when I browse to the files, everything is fine. I have also attempted to re-issue the requests through fiddler and it works, whats going on?

 


@joemensor

Do you refer to Filled Map visual? Thanks for sharing the JSON links, however they both lead to 404 blank pages.

Hi Eric,

It turns out that this was a CORS issue. I managed to make these accessible by making them available in an Azure storage account that had the relevant CORS configuration.

Joe,

 

I believe I'm having a similar CORS issue, but do not have access to an Azure storage account or the ability to configure the CORS of the webserver. Am I out of luck when it comes do using this visual?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.