Lazy Load a chart?

UI Components for JSF
Post Reply
John.Wayne
Posts: 2
Joined: 03 Jan 2011, 23:52

04 Jan 2011, 01:25

I am using primefaces 2.2.RC1. Is it possible to Lazy Load a line chart or any other chart for that matter? That way the page can display while the chart data is loaded. I tried something like this.

<f:ajax event="load">
<p:outputPanel id="chartPanel" styleClass="chartbox">
<p:lineChart value="#{controller.lineChart}" var="display" xfield="#{display.date}" height="250px" width="675px" wmode="transparent" style="chartStyle">
<p:chartSeries label="New" value="#{display.newCount}"/>
<p:chartSeries label="Modified" value="#{display.modCount}"/>
</p:lineChart>
</p:outputPanel>
</f:ajax>

toddc78
Posts: 11
Joined: 06 Oct 2010, 22:55
Location: SD, USA

10 Feb 2011, 00:31

I don't think thats possible.
Todd Christensen

User avatar
ydarcin
Posts: 258
Joined: 04 Jan 2009, 19:02
Location: Turkey

10 Feb 2011, 12:29

Hi,

you can try remote command maybe.

http://www.primefaces.org/showcase/ui/remoteCommand.jsf

Yigit

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests