Skip to content

Commit

Permalink
fixed bug where arrays and objects where handled as string
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgroen committed Jun 30, 2015
1 parent d0997ef commit 3d0bedb
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/GoogleCharts/widget/GoogleAreaChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,12 @@ define([
} : undefined,
'title': (this.title !== '') ? this.title : undefined,
'backgroundColor': (this.backgroundColor !== '') ? this.backgroundColor : undefined,
'colors': (this.colors !== '') ? this.colors : undefined,
'colors': (this.colors !== '') ? JSON.parse(this.colors) : undefined,
'areaOpacity': (this.areaOpacity !== '') ? this.areaOpacity : undefined,
'enableInteractivity': (this.enableInteractivity !== null) ? this.enableInteractivity : undefined,
'forceIFrame': (this.forceIFrame !== null) ? this.forceIFrame : undefined,
'legend': (this.legend !== '') ? this.legend : undefined,
'tooltip': (this.tooltip !== '') ? this.tooltip : undefined,
'legend': (this.legend !== '') ? JSON.parse(this.legend) : undefined,
'tooltip': (this.tooltip !== '') ? JSON.parse(this.tooltip) : undefined,
'aggregationTarget': (this.aggregationTarget !== '') ? this.aggregationTarget : undefined
});
this._chartWrapper = new google.visualization.ChartWrapper({
Expand Down
6 changes: 3 additions & 3 deletions src/GoogleCharts/widget/GoogleColumnChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,12 @@ define([
} : undefined,
'title': (this.title !== '') ? this.title : undefined,
'backgroundColor': (this.backgroundColor !== '') ? this.backgroundColor : undefined,
'colors': (this.colors !== '') ? this.colors : undefined,
'colors': (this.colors !== '') ? JSON.parse(this.colors) : undefined,
'dataOpacity': (this.dataOpacity !== '') ? this.dataOpacity : undefined,
'enableInteractivity': (this.enableInteractivity !== null) ? this.enableInteractivity : undefined,
'forceIFrame': (this.forceIFrame !== null) ? this.forceIFrame : undefined,
'legend': (this.legend !== '') ? this.legend : undefined,
'tooltip': (this.tooltip !== '') ? this.tooltip : undefined
'legend': (this.legend !== '') ? JSON.parse(this.legend) : undefined,
'tooltip': (this.tooltip !== '') ? JSON.parse(this.tooltip) : undefined
});
this._chartWrapper = new google.visualization.ChartWrapper({
'chartType': 'ColumnChart',
Expand Down
6 changes: 3 additions & 3 deletions src/GoogleCharts/widget/GooglePieChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ define([
var options = $.extend({},{
'title': (this.title !== '') ? this.title : undefined,
'backgroundColor': (this.backgroundColor !== '') ? this.backgroundColor : undefined,
'colors': (this.colors !== '') ? this.colors : undefined,
'colors': (this.colors !== '') ? JSON.parse(this.colors) : undefined,
'enableInteractivity': (this.enableInteractivity !== null) ? this.enableInteractivity : undefined,
'forceIFrame': (this.forceIFrame !== null) ? this.forceIFrame : undefined,
'is3D': (this.is3D !== null) ? this.is3D : undefined,
'legend': (this.legend !== '') ? this.legend : undefined,
'legend': (this.legend !== '') ? JSON.parse(this.legend) : undefined,
'pieHole': (this.pieHole !== '') ? this.pieHole : undefined,
'pieSliceBorderColor': (this.pieSliceBorderColor !== '') ? this.pieSliceBorderColor : undefined,
'pieSliceText': (this.pieSliceText !== '') ? this.pieSliceText : undefined,
Expand All @@ -140,7 +140,7 @@ define([
'reverseCategories': (this.reverseCategories !== '') ? this.reverseCategories : undefined,
'slices': (this.slices !== '') ? this.slices : undefined,
'sliceVisibilityThreshold': (this.sliceVisibilityThreshold !== null) ? this.sliceVisibilityThreshold : undefined,
'tooltip': (this.tooltip !== '') ? this.tooltip : undefined
'tooltip': (this.tooltip !== '') ? JSON.parse(this.tooltip) : undefined
});
this._chartWrapper = new google.visualization.ChartWrapper({
'chartType': 'PieChart',
Expand Down
Binary file modified test/Test.mpr
Binary file not shown.
Binary file modified test/widgets/GoogleCharts.mpk
Binary file not shown.

0 comments on commit 3d0bedb

Please sign in to comment.