I have a chart attached to a layout but it does not display correctly.
Using firebug I noted that the canvas tag width and height are set to 200px, Can I change it?
[code]var barChart = layout.cells(“b”).view(“Reporte1”).attachChart({
view: “donut”,
value: “#Cantidad#”,
radius:70,
container:“chart_container”,
pieInnerText: function(obj){
var sum = barChart.sum(“#Cantidad#”);
return Math.round(parseFloat(obj.Cantidad)/sum*100)+“%”;
},
legend:{
width: 125,
align:“right”,
valign:“middle”,
marker:{
type:“square”,
width:10,
radius:2
},
template:“#Titulo#”
},
shadow: 0,
});
barChart.load(“xml/Rep_Grupos_Etapas.php”);[/code]