Skip to content

Commit ee29cf9

Browse files
authored
Fix: pie chart not rendering when series doesn't exist in options. (#3756)
1 parent 17aba39 commit ee29cf9

File tree

1 file changed

+1
-1
lines changed
  • client/app/visualizations/chart/plotly

1 file changed

+1
-1
lines changed

client/app/visualizations/chart/plotly/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ export function prepareLayout(element, seriesList, options, data) {
527527
y: yPosition + cellHeight - 0.015,
528528
xanchor: 'center',
529529
yanchor: 'top',
530-
text: options.seriesOptions[series.name].name || series.name,
530+
text: (options.seriesOptions[series.name] || {}).name || series.name,
531531
showarrow: false,
532532
};
533533
}));

0 commit comments

Comments
 (0)