Skip to content

Commit d33cf50

Browse files
author
Jelte Lagendijk
committed
Fix get
1 parent 54fa5fa commit d33cf50

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

src/ChartJS/widgets/Core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ define([
232232
domConstruct.destroy(this._tooltipNode);
233233
}
234234

235-
if (mx.data.release) { // mx.data.release is deprecated in MX7, so this is for MX5 & MX6
235+
if (mx.data.release && !mx.version || mx.version && parseInt(mx.version.split(".")[0]) < 7) { // mx.data.release is deprecated in MX7, so this is for MX5 & MX6
236236
if (this._data && this._data.datasets && this._data.datasets.length > 0) {
237237
logger.debug(this.id + ".uninitialize release datasets");
238238
for (var i = 0; i < this._data.datasets.length; i++) {

src/ChartJS/widgets/DoughnutChart/widget/DoughnutChart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ define([
136136
}));
137137

138138
// Set the con
139-
html.set(this._numberNode, this._data.object.get(this.numberInside));
139+
html.set(this._numberNode, this._data.object.get(this.numberInside).toString());
140140

141141
// Add class to determain chart type
142142
this._addChartClass("chartjs-doughnut-chart");

src/ChartJS/widgets/PieChart/widget/PieChart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ define([
138138
this._chart = new this._chartJS(this._ctx, chartProperties);
139139

140140
// Set the con
141-
html.set(this._numberNode, this._data.object.get(this.numberInside));
141+
html.set(this._numberNode, this._data.object.get(this.numberInside).toString());
142142

143143
// Add class to determain chart type
144144
this._addChartClass("chartjs-pie-chart");

test/widgets/ChartJS.mpk

41 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)