HI, all.
I'm using YUI 2.5 for a project and trying to display a PieChart for some results. The problem is when I apply the style: attribute to the PieChart constructor for adding a legend, the PieChart won't show up anymore. I can see that there's a flash component on the page (by rightclicking) but no chart displayed at all, any reason why?
var myChart = new YAHOO.widget.PieChart("chartresults", ds, {
style:
{
legend:
{
display: "right"
}
},
dataField: "Number of Records",
categoryField: "Artist",
series: [{}]
});
The source is a local HTML table. If I delete the style { } block, the chart will display fine, but without a legend of course.
Thanks!