Skip to content

Runtime error on PIE chart on "other" #35028

@andreaci

Description

@andreaci

Bug description

Creating a new PIE CHART in a dashboard, with the "other" grouping, will cause an error on the tooltip.

To replicate it, create a new pie chart with the "other" group:

Image

Hover with the mouse on the "other" slice, after a second it will give you this error:

Uncaught runtime errors:

×
ERROR
Cannot set properties of null (setting 'innerHTML')
TypeError: Cannot set properties of null (setting 'innerHTML')
    at TooltipHTMLContent.setContent (webpack-internal:///./node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js:321:20)
    at TooltipView._showTooltipContent (webpack-internal:///./node_modules/echarts/lib/component/tooltip/TooltipView.js:599:20)
    at TooltipView.eval (webpack-internal:///./node_modules/echarts/lib/component/tooltip/TooltipView.js:491:12)
    at TooltipView._showOrMove (webpack-internal:///./node_modules/echarts/lib/component/tooltip/TooltipView.js:370:60)
    at TooltipView._showSeriesItemTooltip (webpack-internal:///./node_modules/echarts/lib/component/tooltip/TooltipView.js:490:10)
    at TooltipView._tryShow (webpack-internal:///./node_modules/echarts/lib/component/tooltip/TooltipView.js:351:14)
    at TooltipView.manuallyShowTip (webpack-internal:///./node_modules/echarts/lib/component/tooltip/TooltipView.js:271:12)
    at eval (webpack-internal:///./node_modules/echarts/lib/component/tooltip/TooltipView.js:176:37)

I can replicate it also on the default sample data, changing one chart to show the "other" slice

Screenshots/recordings

Image

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

  • Installation with docker, standard "docker compose up" with default file.

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Cherried

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions