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 breaks after the 15th color

See original GitHub issue

The pie seems to break when I set a big amount of data. After the 15th color the pie goes transparent (donut) or black (default) for a while, and then picks up again showing 15 colors - to break again and so on.

The graphs below show the total number of commits on 346 repos.

pie-bug-after-15th-color-a

pie-bug-after-15th-color-b

This is the setup (lipsum-ized for the sake of privacy):

new Chartist.Pie('.ct-chart', {
    labels: ['Lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipisicing', 'elit', 'sed', 'do', 'eiusmod', 'tempor', 'incididunt', 'ut', 'labore', 'et', 'dolore', 'magna', 'aliqua', 'Ut', 'enim', 'ad', 'minim', 'veniam', 'quis', 'nostrud', 'exercitation', 'ullamco', 'laboris', 'nisi', 'ut', 'aliquip', 'ex', 'ea', 'commodo', 'consequat', 'Duis', 'aute', 'irure', 'dolor', 'in', 'reprehenderit', 'in', 'voluptate', 'velit', 'esse', 'cillum', 'dolore', 'eu', 'fugiat', 'nulla', 'pariatur', 'Excepteur', 'sint', 'occaecat', 'cupidatat', 'non', 'proident', 'sunt', 'in', 'culpa', 'qui', 'officia', 'deserunt', 'mollit', 'anim', 'id', 'est', 'laborum', 'Lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipisicing', 'elit', 'sed', 'do', 'eiusmod', 'tempor', 'incididunt', 'ut', 'labore', 'et', 'dolore', 'magna', 'aliqua', 'Ut', 'enim', 'ad', 'minim', 'veniam', 'quis', 'nostrud', 'exercitation', 'ullamco', 'laboris', 'nisi', 'ut', 'aliquip', 'ex', 'ea', 'commodo', 'consequat', 'Duis', 'aute', 'irure', 'dolor', 'in', 'reprehenderit', 'in', 'voluptate', 'velit', 'esse', 'cillum', 'dolore', 'eu', 'fugiat', 'nulla', 'pariatur', 'Excepteur', 'sint', 'occaecat', 'cupidatat', 'non', 'proident', 'sunt', 'in', 'culpa', 'qui', 'officia', 'deserunt', 'mollit', 'anim', 'id', 'est', 'laborum', 'Lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipisicing', 'elit', 'sed', 'do', 'eiusmod', 'tempor', 'incididunt', 'ut', 'labore', 'et', 'dolore', 'magna', 'aliqua', 'Ut', 'enim', 'ad', 'minim', 'veniam', 'quis', 'nostrud', 'exercitation', 'ullamco', 'laboris', 'nisi', 'ut', 'aliquip', 'ex', 'ea', 'commodo', 'consequat', 'Duis', 'aute', 'irure', 'dolor', 'in', 'reprehenderit', 'in', 'voluptate', 'velit', 'esse', 'cillum', 'dolore', 'eu', 'fugiat', 'nulla', 'pariatur', 'Excepteur', 'sint', 'occaecat', 'cupidatat', 'non', 'proident', 'sunt', 'in', 'culpa', 'qui', 'officia', 'deserunt', 'mollit', 'anim', 'id', 'est', 'laborum', 'Lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipisicing', 'elit', 'sed', 'do', 'eiusmod', 'tempor', 'incididunt', 'ut', 'labore', 'et', 'dolore', 'magna', 'aliqua', 'Ut', 'enim', 'ad', 'minim', 'veniam', 'quis', 'nostrud', 'exercitation', 'ullamco', 'laboris', 'nisi', 'ut', 'aliquip', 'ex', 'ea', 'commodo', 'consequat', 'Duis', 'aute', 'irure', 'dolor', 'in', 'reprehenderit', 'in', 'voluptate', 'velit', 'esse', 'cillum', 'dolore', 'eu', 'fugiat', 'nulla', 'pariatur', 'Excepteur', 'sint', 'occaecat', 'cupidatat', 'non', 'proident', 'sunt', 'in', 'culpa', 'qui', 'officia', 'deserunt', 'mollit', 'anim', 'id', 'est', 'laborum', 'Lorem', 'ipsum', 'dolor', 'sit', 'amet', 'consectetur', 'adipisicing', 'elit', 'sed', 'do', 'eiusmod', 'tempor', 'incididunt', 'ut', 'labore', 'et', 'dolore', 'magna', 'aliqua', 'Ut', 'enim', 'ad', 'minim', 'veniam', 'quis', 'nostrud', 'exercitation', 'ullamco', 'laboris', 'nisi', 'ut', 'aliquip', 'ex', 'ea', 'commodo', 'consequat', 'Duis', 'aute', 'irure', 'dolor', 'in', 'reprehenderit', 'in', 'voluptate', 'velit', 'esse', 'cillum', 'dolore', 'eu', 'fugiat', 'nulla', 'pariatur', 'Excepteur', 'sint', 'occaecat', 'cupidatat', 'non', 'proident', 'sunt', 'in', 'culpa', 'qui', 'officia', 'deserunt', 'mollit', 'anim', 'id', 'est', 'laborum', 'Lorem'],
    series: [9066, 5673, 5022, 2987, 2688, 2538, 2296, 2240, 2224, 2107, 2105, 1720, 1289, 1275, 1252, 1188, 1183, 1173, 1148, 1073, 1047, 1030, 996, 977, 805, 789, 767, 726, 709, 679, 677, 663, 648, 595, 593, 585, 574, 568, 563, 551, 530, 529, 529, 517, 504, 501, 493, 491, 490, 484, 476, 475, 471, 463, 457, 457, 449, 422, 419, 413, 398, 396, 393, 382, 374, 370, 329, 327, 324, 312, 306, 303, 298, 296, 287, 277, 264, 263, 258, 256, 246, 243, 242, 227, 215, 212, 210, 210, 209, 202, 198, 198, 184, 184, 181, 174, 171, 168, 166, 163, 158, 155, 151, 151, 150, 140, 136, 129, 128, 127, 127, 126, 122, 120, 119, 115, 115, 114, 107, 106, 105, 104, 104, 103, 101, 99, 97, 96, 88, 87, 87, 86, 86, 86, 85, 85, 84, 83, 81, 80, 77, 76, 75, 74, 74, 73, 73, 73, 70, 69, 67, 66, 65, 65, 63, 61, 61, 61, 60, 59, 57, 57, 56, 56, 56, 55, 54, 54, 54, 53, 52, 51, 50, 50, 50, 49, 48, 48, 48, 47, 46, 45, 45, 44, 44, 43, 42, 41, 40, 40, 37, 37, 37, 36, 36, 36, 36, 35, 34, 34, 33, 33, 32, 31, 30, 30, 30, 29, 29, 29, 29, 29, 29, 28, 28, 28, 27, 26, 26, 25, 25, 25, 24, 23, 23, 23, 23, 23, 23, 22, 22, 21, 21, 21, 21, 20, 20, 20, 20, 20, 19, 19, 19, 19, 18, 17, 17, 17, 17, 16, 15, 14, 14, 14, 13, 13, 13, 13, 13, 13, 12, 12, 12, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 10, 10, 10, 10, 9, 9, 9, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 8, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 6, 6, 6, 6, 6, 6, 5, 5, 5, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 2, 2, 2, 1, 1]
}, {
    donut: true,
    donutWidth: 140,
    width: 800,
    height: 600,
    chartPadding: 10,
    labelOffset: 5,
    labelDirection: 'explode',
    showLabel: true
});

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
dreamyguycommented, May 30, 2016

I think we can close this issue with the given suggestions, so I’m doing it. 🚀

1reaction
dreamyguycommented, May 30, 2016

@daN4cat interesting approach, which I’ll try to keep in mind when dealing with this kind of problem. Cheers for the feedback! 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Color pie breaks in magic's recent or not so recent history?
Given this is a blue card, it doesn't look completely unusable given that it'd likely end up as a finisher card for control...
Read more >
Are These Cards Color Pie Breaks? — Forum - TappedOut
#15. Color pie breaks are a good thing, they help bring balance to the ... color pie breaks are fine when they have...
Read more >
The Evolution of Magic's Color Pie — Analyzing Alpha's White ...
It took 15 years after Savannah for WotC to start printing 2/1 creatures that had upsides. White still gets 2/1 creatures for one...
Read more >
Black Cards that Break the Color Pie | Magic the Gathering
Command your budget! The Commander's Quarters is your source for everything budget Commander! Today Mitch talks about black cards in magic ...
Read more >
Color - MTG Wiki - Fandom
A player can offset these weaknesses by adding cards of another color, but this versatility comes at the expense of a consistent mana...
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