destroy: function() {
        if (this.chart) {
          this.chart.destroy();
          this.chart = null;
        }