lishulincug commented on issue #19349:
URL: https://github.com/apache/echarts/issues/19349#issuecomment-2582183594
sometimes, update Chart do not work,chart.clear() work,but
this.chart.setOption do not work, Using Safari on a MAC OPERATING system .
updateChart() {
this.chart.clear()
if (this.isloading) {
this.chart.showLoading({
text: 'loading',
color: '#4cbbff',
textColor: '#4cbbff'
})
}
let series = []
if (this.ydata.length > 0) {
series = this.seriesData(this.ydata)
}
//
// if (this.xdata.length > 0) {
this.defaultOption.xAxis['data'] = this.xdata
this.chart.setOption(this.defaultOption)
this.chart.setOption(this.optionNew)
// }
//
this.chart.setOption({ series: series })
this.chart.resize()
if (this.isloading === false) {
this.chart.hideLoading()
}
}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]