[Chart] Cannot enable series after zooming

UI Components for JSF
Post Reply
harisharavind
Posts: 7
Joined: 08 Jun 2015, 12:08

25 Aug 2015, 10:50

PF Version: 5.0.4
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()"/>
Seems like the chart is not getting redrawn.

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

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 29 guests