Hi,
This is for those who generate Charts dynamicaly via java code.
Similar to the following;.....
PieChart pie = new PieChart();
pie.setId("pi_1");
pie.setWidgetVar(pie.getId());
pie.setDiameter(100);
pie.setTitle("Test");
pie.setDataFormat("value"); pie.setLegendToggle(true);
pie.setLegendPosition("w");
pie.setId("pi_1");
pie.setWidgetVar(pie.getId());
pie.setDiameter(100);
pie.setTitle("Test");
pie.setDataFormat("value"); pie.setLegendToggle(true);
pie.setLegendPosition("w");
it happened to my that whenever i set the legendPosition the chart never gets rendered.......
if u find urself in a similar position do what i did... (by the way this is not a hack !!!)
add the following code in the head section of ur XHTML file;-
<script language="javascript" type="text/javascript" src="./resources/js/jquery.jqplot.min.js">
<link rel="stylesheet" type="text/css" href="./resources/css/jquery.jqplot.min.css"/>
<link rel="stylesheet" type="text/css" href="./resources/css/jquery.jqplot.min.css"/>
....and let the magic continue....
Tested in primefaces 3.3