how does p:chart using rio theme

Locked
streetpoet
Posts: 7
Joined: 07 Nov 2014, 15:44

08 Jul 2015, 16:04

dear team, I notice dashboard.xhtml in demo war which has a javascript function 'skinChart', but I don't know
how connect between p:chart and js function 'skinChart'.
Can you tell me what mechanism make p:chart read 'skinChart' function ? thanks a lot.

streetpoet
Posts: 7
Joined: 07 Nov 2014, 15:44

09 Jul 2015, 07:11

Resolved. After decompiling the demo source, I found we should use lineModel#setExtender method to set a js function which can be invoke on the page. Thanks.

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

10 Jul 2015, 01:02

Yes, you can use setExtender method in a Chart model. Exp; lineModel1.setExtender("skinChart");

Locked

Return to “Rio”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 10 guests