Skip to content

Commit

Permalink
Merge pull request #149 from bor0/master
Browse files Browse the repository at this point in the history
Added optional parameter 'id' to JSON
  • Loading branch information
philogb committed May 28, 2013
2 parents b371fea + 966e357 commit 97ead84
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Visualizations/BarChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -536,8 +536,11 @@ $jit.BarChart = new Class({
var val = values[i]
var valArray = $.splat(values[i].values);
var acum = 0;
if (typeof val.id == 'undefined') {
val.id = val.label;
}
ch.push({
'id': prefix + val.label,
'id': prefix + val.id,
'name': val.label,
'data': {
'value': valArray,
Expand Down

0 comments on commit 97ead84

Please sign in to comment.