I'm using primefaces 5.2 latest version and tried for line chart,its working fine.
Am trying to change the line chart axes color,background,border...etc.but extender attribute is not working in latest primefaces version.
My XHTML:
<p:chart type="line" model="#{chartViewLine.lineModel1}" styleClass="legendpos" extender="chartExtender" style="height:300px; width:570px;"/>
JAVASCRIPT:
function chartExtender() {
this.cfg.grid = {
background: 'transparent',
gridLineColor: '#303030',
drawBorder: false,
};
}
Is any alternative for 'extender' attribute OR my code have any wrong syntax?
You should now set your extender from your model in your
chartViewLine
bean.Attribute
extender
has been removed in PrimeFaces 5.0 (see also list ofp:chart
attributes from PrimeFaces 5.0 Documentation)