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 -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -