jsf - Primefaces Chart issue Uncaught TypeError: Cannot read property 'DateAxisRenderer' of undefined -


i'm using primefaces chart in application. i've placed chart inside p:panel , p:panel in separate form. , form viewed after navigation done. on clicking button in form, i'm rendering panel containing chart, below error

uncaught typeerror: cannot read property 'dateaxisrenderer' of undefined 

but if put below line in page containing form, chart rendered correctly

<h:outputscript name="charts/charts.js" library="primefaces" /> 

can tell goes wrong here ? or need put h:outputscript tag whereever needed ??

the same happens lengent position also. legent position no displayed correctly , facing css issues w.r.t p:chart. adding below line in main page, chart displayed per expectation

<h:outputstylesheet name="charts/charts.css" library="primefaces" /> 

kindly help.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -