We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 17ba8e7 + 6e9170c commit 3df714dCopy full SHA for 3df714d
client/app/visualizations/chart/plotly.js
@@ -273,7 +273,12 @@ const PlotlyChart = () => {
273
series.data.forEach((row) => {
274
plotlySeries.values.push(row.y);
275
plotlySeries.labels.push(hasX ? row.x : `Slice ${index}`);
276
- plotlySeries.marker.colors.push(scope.options.seriesOptions[hasX ? row.x : `Slice ${index}`].color);
+ if (scope.options.seriesOptions[hasX ? row.x : `Slice ${index}`] === undefined) {
277
+ plotlySeries.marker.colors.push(getColor(index));
278
+ index += 1;
279
+ } else {
280
+ plotlySeries.marker.colors.push(scope.options.seriesOptions[hasX ? row.x : `Slice ${index}`].color);
281
+ }
282
});
283
284
scope.data.push(plotlySeries);
0 commit comments