Pie issue in IE7/8


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Dan Lipsa on 30th October 2012
If one of the value from the list is zero in IE7 and IE8 it will take the entire pie surface. For example :

{
   "type":"Pie",
   "effect":"RoundRobin",
   "args":[
     [2.45, 45.33, 10.444444, 0]
   ],
   "config":{
     "chart.shadow.blur":5,
     "chart.key":["label1", "label2", "label3", "label4"],
     "chart.tooltips.effect":"expand",
     "chart.shadow.offsety":0,
     "chart.key.position.y":"javascript:graph.canvas.height - 70",
     "chart.shadow.offsetx":0,
     "chart.title":"Campaign Activity",
     "chart.exploded":5, "chart.title.size":14,
     "chart.tooltips.event":"onmousemove",
     "chart.gutter.top":40,
     "chart.gutter.bottom":40,
     "chart.colors":["#00FF00", "#1F8FA1", "#FF0000", "#CACFBE"],
     "chart.title.bold":true,
     "chart.shadow":true,
     "chart.tooltips":["2.45", "45.33", "10.44", "0.00"]}
}

will look like:
dl.dropbox.com/u/63224686/charts/Screen%20Shot%202012-10-30%20at%2012.10.36%20PM.png

instead of:
dl.dropbox.com/u/63224686/charts/Screen%20Shot%202012-10-30%20at%2012.12.14%20PM.png
Posted by RGraph support on 30th October 2012
Hi,

You can use a very small value in the case of IE7/8 - such as 0.0000001. So you could use this:

RGraph.isOld ? 0.0000001 : 0;
Posted by Dan Lipsa on 30th October 2012
This was my current workaround but I was looking for a fix in RGraph since the values are come from server using Ajax dinamically
Posted by RGraph support on 30th October 2012
Hi,

You could try adding the workaround to your copy of ExCanvas - that way it would be present for all chart types.
Posted by RGraph support on 30th October 2012
Hi,

OK I had a look at adding it to the ExCanvas library and it was quite straight forward. Simply add this code:

if (aStartAngle == aEndAngle) {
     aEndAngle += 0.00000000001;
}

At line 685. I'll add the fix into the RGraph copy of ExCanvas.
Posted by Dan Lipsa on 31st October 2012
thanks a lot .... this was very helpful.
Posted by RGraph support on 31st October 2012
Hi,

You're welcome. If you could see fit to link to the RGraph website I'd be very grateful.

Thanks!

Add a reply

 




« Back to message list
RGraph on social media