graphael - Position of g.raphael piechart legend -
i making dynamic pie chart , quite new making charts graphael
is possible make legend go way left in example? using g.raphael , g.pie.js , legendpos set "south".
is there way make southwest? example of current chart can seen @ following link:
i had same problem. solution work not flexible:
var chart = raphael(target, target.clientwidth, target.clientheight); var pchart = chart.piechart(w, h, rad, values, {legend: legend, legendpos: "south", minpercent: 0.01, legendothers: "others"}); pchart.attr({"font-size": 16, "font-family": "arial", "cx":"280", "x":"295"});
"cx" attribute x-pos of dot in legend , "x" attribute x-pos of text in legend.
Comments
Post a Comment