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.
how does p:chart using rio theme
-
- Posts: 7
- Joined: 07 Nov 2014, 15:44
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.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Yes, you can use setExtender method in a Chart model. Exp; lineModel1.setExtender("skinChart");
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests