#1456·chartist

[Bug]: Limit of segments in pie chart

Author: VectrexCreated Nov 27, 2025Updated Nov 27, 2025
Labelsbug

Would you like to work on a fix?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

Current and expected behavior

Creating a pie (or donut) chart with more than 15 series values results in gap and no rendering of segments beyond these 15 value.

Displayed correctly:

javascript
new PieChart(
      myContainer,
      {
        series: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15],
      },

15 slices and gap:

javascript
new PieChart(
      myContainer,
      {
        series: [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,50],
      },

The gap is the same size as the segment should be.

Reproduction

Chartist version

1.5.0

Possible solution

No response