Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions ui/src/widgets/ui-chart/UIChart.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@
}
},
color: this.props.colors,
animation: false,
series: []
}
return options
Expand Down Expand Up @@ -254,6 +255,7 @@
}
},
color: this.props.colors,
animation: false,
xAxis: {
type: chartJStoECharts.axisType(this.xAxisType),
name: this.props.xAxisLabel,
Expand Down Expand Up @@ -293,9 +295,7 @@
}
}
},
series: [],
animationDuration: 300, // minimal animation on inital data load
animationDurationUpdate: 0 // minimal animation on data update
series: []
}

// if an area chart, set the fill to true
Expand Down Expand Up @@ -568,8 +568,6 @@
radius: this.chartType === 'doughnut' ? ['40%', '100%'] : '100%',
data: [],
top: this.hasTitle ? 40 : 0, // account for the title
animationDuration: 300, // minimal animation on inital data load
animationDurationUpdate: 0, // minimal animation on data update
itemStyle: {
borderWidth: 2,
borderColor: '#fff'
Expand Down Expand Up @@ -686,10 +684,10 @@
updateYAxisLimits (options) {
if (this.hasData && this.props.xAxisType !== 'radial') {
if (!Object.hasOwn(this.props, 'ymin') || this.props.ymin === '' || typeof this.props.ymin === 'undefined') {
options.yAxis[0].min = axisHelper.getAxisMin // set sensible y-limits

Check warning on line 687 in ui/src/widgets/ui-chart/UIChart.vue

View workflow job for this annotation

GitHub Actions / build / Build on 20

Caution: `axisHelper` also has a named export `getAxisMin`. Check if you meant to write `import {getAxisMin} from './helpers/axis.helper'` instead
}
if (!Object.hasOwn(this.props, 'ymax') || this.props.ymax === '' || typeof this.props.ymax === 'undefined') {
options.yAxis[0].max = axisHelper.getAxisMax // set sensible y-limits

Check warning on line 690 in ui/src/widgets/ui-chart/UIChart.vue

View workflow job for this annotation

GitHub Actions / build / Build on 20

Caution: `axisHelper` also has a named export `getAxisMax`. Check if you meant to write `import {getAxisMax} from './helpers/axis.helper'` instead
}
}
},
Expand Down
Loading