Nicolas
unread,May 6, 2009, 8:44:31 AM5/6/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to plotkit
I'm able to display a pie without results (only 0 values) under
firefox but under IE i'm getting only a white space.
Any ideas ?
Thank you.
Extract of POC:
<div><canvas id="graph1" height="105" width="200"></canvas></div>
<script>
var options = {
"IECanvasHTC": "/plotkit/iecanvas.htc",
"padding": {left: 0, right: 0, top: 0, bottom: 0},
"xTicks": [{v:0, label:""},
{v:1, label:""},
{v:2, label:""},
{v:3, label:""},
{v:4, label:""}],
"drawYAxis": false,
"drawBackground": true,
"shouldStroke" : true
};
function drawGraph(dataset, name) {
var layout = new PlotKit.Layout("pie", options);
layout.addDataset("sqrt", dataset);
layout.evaluate();
var canvas = MochiKit.DOM.getElement(name);
var plotter = new PlotKit.SweetCanvasRenderer(canvas, layout,
options);
plotter.render();
}
var dataset1=[[1,0]];
MochiKit.DOM.addLoadEvent(drawGraph(dataset1, "graph1"));
</script>