javascript - How to use line chart extender attribute in primefaces 5.2 -
i'm using primefaces 5.2 latest version , tried line chart,its working fine.
am trying change line chart axes color,background,border...etc.but extender attribute 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 alternative 'extender' attribute or code have wrong syntax?
you should set extender model in chartviewline
bean.
linechartmodel model = new linechartmodel(); model.setextender("chartextender");
attribute extender
has been removed in primefaces 5.0 (see list of p:chart
attributes primefaces 5.0 documentation)
Comments
Post a Comment