FIX: do not use number helper for charts Y value
This commit is contained in:
parent
945cb90e7e
commit
d556975cdc
|
@ -100,7 +100,7 @@ export default Ember.Component.extend(AsyncReport, {
|
|||
labels,
|
||||
datasets: reportsForPeriod.map(report => {
|
||||
return {
|
||||
data: Ember.makeArray(report.data).map(d => number(d.y)),
|
||||
data: Ember.makeArray(report.data).map(d => Math.round(parseFloat(d.y))),
|
||||
backgroundColor: "rgba(200,220,240,0.3)",
|
||||
borderColor: report.color
|
||||
};
|
||||
|
@ -116,6 +116,7 @@ export default Ember.Component.extend(AsyncReport, {
|
|||
if (this._chart) {
|
||||
this._chart.destroy();
|
||||
}
|
||||
|
||||
this._chart = new window.Chart(context, this._buildChartConfig(data));
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue