I am trying to use the extender attribute on a line chart in PrimeFaces 3.4. I need to use an expander to format the x axis with date / time values. Doing this without an expander is not an option, as there are too many data points, and the labels are simply overwritten if I use the default PF lineChart attributes. When I tweak the code as shown below, I get the x axis with no displayed values; all i see is the x axis. See Pic for more details. How to configure this so that the x axis displays the time in hh: mm format?

XHTML Code
<script type="text/javascript" src="#{request.contextPath}/js/plugins/jqplot.dateAxisRenderer.min.js"></script> <script type="text/javascript" src="#{request.contextPath}/js/plugins/jqplot.canvasAxisTickRenderer.min.js"></script> <script type="text/javascript"> function loginRateChartExt() { this.cfg.axes = { yaxis: { numberTicks: 10, label: 'Logins per minute ->', labelRenderer: $.jqplot.CanvasAxisLabelRenderer, labelOptions: { fontFamily: 'Verdana', fontSize: '8pt' }, }, xaxis: { renderer: $.jqplot.DateAxisRenderer, rendererOptions: { tickRenderer:$.jqplot.CanvasAxisTickRenderer }, tickOptions: { formatString:'%H:%M' }, label: 'Time of day ->', labelRenderer: $.jqplot.CanvasAxisLabelRenderer, labelOptions: { fontFamily: 'Verdana', fontSize: '8pt' } } }; } </script> <p:lineChart id="loginRateChart" value="#{loginRateBean.chartModel}" extender="loginRateChartExt" />
Bean Code
for(int i = 0; i < workerBean.getSize(); i++) {
abu.marcose
source share