There was an error while loading. Please reload this page.
1 parent dfbc966 commit 536ea2cCopy full SHA for 536ea2c
1 file changed
ui/src/widgets/ui-chart/UIChart.vue
@@ -425,7 +425,9 @@ export default {
425
const seriesCount = this.chart.getOption().series.length
426
this.add(msg)
427
// if any series have been added, re-apply any chartOptions passed in
428
- if (this.chart.getOption().series.length > seriesCount) {
+ // Also re-apply if this is a radial (pie or doughnut) chart as the radius for these are re-calculated
429
+ // when adding data, which may remove any radius applied via msg.ui_update.
430
+ if (this.chart.getOption().series.length > seriesCount || this.props.xAxisType === 'radial') {
431
// update the chart first from options applied in previous sessions
432
const chartOptions = this.chartOptions
433
if (chartOptions) {
0 commit comments