question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Pie Chart: zero values aren't displayed

See original GitHub issue

Greetings!

Pie chart doesn’t render sections with zero value. Is that possible to draw a thin ray and add label “0” in case the series value is 0?

Issue sample:

var container = document.getElementById('chart-area');
var data = {
    categories: ['Browser'],
    series: [
        {
            name: 'Chrome',
            data: 0
        },
        {
            name: 'IE',
            data: 20.47
        }
    ]
};
var options = {
    chart: {
        width: 660,
        height: 560,
        title: 'Usage share of web browsers'
    },
    tooltip: {
        suffix: '%'
    }
};

tui.chart.pieChart(container, data, options);

piechart1

All legends are displayed, but not all the chart sections.

Can I kindly ask you to provide the option to draw a ray in this case or do it by default like in the example below 😃? Expected behavior example:

piechart1

Thank you in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
jung-hancommented, Oct 28, 2020

@AlexDemian

It seems that this part has not been considered yet. That’s a good opinion! After the team members talk, I will leave a reply.

0reactions
stale[bot]commented, Apr 27, 2022

This issue will be closed due to inactivity. Thanks for your contribution!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Excel: How to not display labels in pie chart that are 0%
The easiest is in menu File > Options, Advanced tab, section "Display options for this worksheet", to uncheck the option of "Show a...
Read more >
How to suppress 0 values in an Excel chart - TechRepublic
You can hide the 0s by unchecking the worksheet display option called Show a zero in cells that have zero value. Here's how:...
Read more >
How-to Easily Hide Zero and Blank Values from an Excel Pie ...
To only show the pie chart slices with slice values not equal to zero (0) and not equal to blank, we just need...
Read more >
Pie Chart - Remove Zero Value Labels - Excel Help Forum
1. Right click on one of the chart "data labels" and choose "Format Data Labels." 2. Choose "Number" from the vertical menu ...
Read more >
How to Hide Zero Values in Excel Pie Chart (3 Simple Methods)
1. Use Filter Feature to Hide Zero Values in Excel Pie Chart · Go to the Insert. · Then, select the pie charts....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found