mercredi 14 juin 2017

Ember Highcharts Component throwing odd error

I am trying to implement a dynamic highcharts that changes every time a new model comes in. In ember-highcharts documentation, they explain that all needs to be done is implement the EmberHighChartComponent and implement a contentdidchange observer that observes the model and would change the graph when the model changes

details here :

http://ift.tt/2sBao7C

So when I implement it, it works perfectly and graph changes when there is new content, but as soon as I try to navigate somewhere else on the page, it throws this error:

Even when I emptied the component this happens, which tells me that the problem is in EmberHighChartComponent

this is what I have after emptying the component

dynamic-chart.js

import EmberHighChartsComponent from 'ember-highcharts/components/high-charts';


export default EmberHighChartsComponent.extend( {


});

dynamic-chart.hbs



The Error that I get:

TypeError: undefined is not an object (evaluating 'chart.renderTo.removeAttribute')

Any ideas whether this is a package issue or I am misunderstanding the implementation ?




Aucun commentaire:

Enregistrer un commentaire