[Highcharts] - Labels are removed from a Pie or donut chart that has only one data item

Created on 3 September 2021, over 3 years ago
Updated 16 April 2025, 15 days ago

Problem/Motivation

I am using Highcharts' pie chart to display gender distribution for webform submission.

The pie charts works properly if there is data for more than one categories.
Example: Males: 2, Females: 20, Others: 0

However, the labels are removed completely if there is data for just one category.
Example: Males: 0, Females: 9

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

3.2

Component

Highcharts integration

Created by

🇮🇳India dipakmdhrm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024