AlexDel commented on a change in pull request #5844: Ignite 10538
URL: https://github.com/apache/ignite/pull/5844#discussion_r250463778
 
 

 ##########
 File path: 
modules/web-console/frontend/app/components/ignite-chart/controller.js
 ##########
 @@ -81,6 +81,13 @@ export class IgniteChartController {
      * @param {{chartOptions: 
ng.IChangesObject<import('chart.js').ChartConfiguration>, chartTitle: 
ng.IChangesObject<string>, chartDataPoint: 
ng.IChangesObject<IgniteChartDataPoint>, chartHistory: 
ng.IChangesObject<Array<IgniteChartDataPoint>>}} changes
      */
     async $onChanges(changes) {
+        if (changes.resultDataStatus && ['WAITING', 
'ERROR'].includes(changes.resultDataStatus.currentValue) && this.chart) {
+            this.chart.destroy();
 
 Review comment:
   That's no problem, because ignite-chart depends on it's feeder to provide 
fault-tolerant streams. In case error occurs feeder's responsibility to handle 
it it send new data to the chart.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to