We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d0bbacf commit 57bffaeCopy full SHA for 57bffae
src/charts/c3/c3-chart.component.js
@@ -99,7 +99,7 @@
99
chartData.bindto = '#' + $attrs.id;
100
// always re-generate donut pct chart because it's colors
101
// change based on data and thresholds
102
- if (!chart || $attrs.id.indexOf('donutPctChart')) {
+ if (!chart || $attrs.id.includes('donutPctChart')) {
103
chart = c3.generate(chartData);
104
} else {
105
//if chart is already created, then we only need to re-load data
0 commit comments