"""I have just upgraded to version 5.0 and tried out the new Cartodiagram Map. I created a pie chart (with json point coordinates of course) and then created a cartodiagram chart with the same dataset. The world map is displayed correctly and no errors are shown.

However, the pies are not displayed?! I also tried the simple example from https://github.com/apache/superset/issues/33900. It does not work for me.

Have I forgotten something? Is there anything else to set? Is some customization missing? Since it looks as if it works for everyone, the problem must be mine, isn't it? """ Here is a discussion from @Moosheimer We iterated a lil with the bot but it looks like it deserves an issue. See original discussion for more details.

It works with tables and KPI for example but not with pie chart as in the example.

Originally posted by @Moosheimer in https://github.com/apache/superset/discussions/34069

Comment From: dosubot[bot]

A few things can prevent pies from displaying on the Cartodiagram Map even if the map itself loads fine:

  • Your geometry column must contain valid GeoJSON Features or a FeatureCollection, not just raw Point or Polygon objects. If your data isn't wrapped as a Feature, pies won't render—see this explanation.
  • In the Cartodiagram chart controls, make sure you have selected both a chart (the pie chart you want to display) and the correct geometry column. Both are required for pies to show up—see plugin control requirements.
  • The chart type in the Cartodiagram config must be set to "pie", and you need to provide the value/aggregation fields for the pie segments.
  • If your numeric columns are returned as strings (for example, due to large numbers or certain database types), pies may not render. Try casting those columns to BIGINT in your SQL query—see this workaround.
  • If you use map tiles or layers from third-party domains, check your Content Security Policy (CSP) settings. If the domains aren't allowed, map layers (and possibly overlays like pies) may not render—see plugin setup notes.

If you've checked all of the above and pies still don't show, double-check your dataset shape and control panel settings. Most issues are due to missing or misconfigured geometry, chart selection, or data formatting.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

Comment From: rusackas

CC @jansule

Any configuration of controls and/or data you can share here might help us reproduce the issue more reliably/expediently.