Skip to content

Including additional JQuery UI not working

Problem:


I can't seem to get any of the JQuery UI components to work on any pages that contain the PHPCharts.

Solution:


It is not recommended to add additional jQuery libraries because phpChart already includes the required libraries. 

If you have to include other Query libraries manually, the workaround is to 

1. Set draw to not to render by setitng the 4th parameter to false. 

2. use get_display and set parameter to false to not to include any libraries from phpChart.

e.g.

$pc = new C_PhpChartX(array(array(11, 9, 5, 12, 14)),'Get_Display');
$pc->draw(400, 300, '', false);
echo $pc->get_display(true);

Feedback and Knowledge Base