Skip to content

Only one piechart is allowed per page #140

@kurko

Description

@kurko

I'm running into a weird bug: I am not able to have more than one chart per page. If I delete the call to the first pie, than the second shows up, and so on.

Is there a limitation for the number of piecharts we can have in a page?

See this screenshot:

http://cl.ly/2g2T2z1D2G3X3x032r0I

With this code:

var data = {
  items: [
    {label: 'One', data: 12015},
    {label: 'Two', data: 23834},
    {label: 'Three', data: 24689}
  ]
};

//Push our data into two separate arrays
var labels = [];
var values = [];
 for (i in data.items) {
   var item = data.items[i];
   labels.push(item.label);
   values.push(item.data);
 }

var r = Raphael("pie_chart");
var pie = r.piechart(60, 60, 50, values, {legend: labels, legendpos: "east"});

var r_two = Raphael("pie_chart_two");
var pie_two = r_two.piechart(60, 60, 50, values, {legend: labels, legendpos: "east"});

var r_three = Raphael("pie_chart_three");
var pie_three = r_three.piechart(60, 60, 50, values, {legend: labels, legendpos: "east"});

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions