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 fd1caab commit 501d436Copy full SHA for 501d436
src/charts/c3/c3-chart.component.js
@@ -99,7 +99,7 @@
99
chartData.bindto = '#' + $attrs.id;
100
// only re-generate donut pct chart if it has a threshold object
101
// because it's colors will change based on data and thresholds
102
- if (!chart || ($attrs.id.includes('donutPctChart') && chartData.thresholds)) {
+ if (!chart || ($attrs.id.indexOf('donutPctChart') !== -1 && chartData.thresholds)) {
103
chart = c3.generate(chartData);
104
} else {
105
//if chart is already created, then we only need to re-load data
0 commit comments