In my project i am using p:chart with extender option.
It is implemented with Zoom, legend and animate options.
Issue:
I have 5 line series in the chart. I disable a series by clicking on the series in legend(Toggle option).
After removing i have 4 line series which I zoom.
Issue is after zooming if i try to enable the disabled series in legend - nothing happens. It is not getting enabled.
In XHTML:
Code: Select all
<script language="javascript" type="text/javascript">
function extnder(){
this.cfg.sortData=false;
}
</script>
<p:chart type="line" model="#{catalogChartBean.lineModel1}" widgetVar="catalogLineChart" responsive="true"/>
<p:commandButton type="button" value="Reset" icon="ui-icon-cancel" onclick="PF('catalogLineChart').resetZoom()"/>
Exception Caught on Chrome Console:
Uncaught TypeError: Failed to execute 'collapse' on 'Selection': 1 argument required, but only 0 present.
h @ charts.js.xhtml?ln=primefaces&v=5.0.4:1
bI.event.dispatch @ jquery.js.xhtml?ln=primefaces&v=5.0.4:25
bI.event.add.ce.handle @ jquery.js.xhtml?ln=primefaces&v=5.0.4:25