You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my component file I have created an options property as
options: computed('metric',function(){letopts=defaultOptions;if(this.metric==='height'){opts.scales.yAxes=[{ticks: {callback: function(value,index,values){// code to return labels}}}]}else{opts.scales.yAxes=[{ticks: {callback: function(item,index,items){// code to return labels}}}]returnopts;}});
So when first time chart loads it renders correct labels and if I change the metric then the same callback is getting used and renders same labels but with updated data values.
Can anyone help on this?
The text was updated successfully, but these errors were encountered:
Hello,
I have embedded ember-cli-chart in my hbs file as
In my component file I have created an options property as
So when first time chart loads it renders correct labels and if I change the metric then the same callback is getting used and renders same labels but with updated data values.
Can anyone help on this?
The text was updated successfully, but these errors were encountered: