Page 1 of 1

how does p:chart using rio theme

Posted: 08 Jul 2015, 16:04
by streetpoet
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.

Re: how does p:chart using rio theme

Posted: 09 Jul 2015, 07:11
by streetpoet
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.

Re: how does p:chart using rio theme

Posted: 10 Jul 2015, 01:02
by mert.sincan
Yes, you can use setExtender method in a Chart model. Exp; lineModel1.setExtender("skinChart");