pChart 2.0 with Codeigniter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12) +--- Thread: pChart 2.0 with Codeigniter (/showthread.php?tid=915) |
pChart 2.0 with Codeigniter - Edrard - 01-29-2015 In my project I was need PChart 2.0 and I start searching fast way how to integrate this libraries, and no complite solution was founded, so I start to integrate it by myself, and I like to share my practices with community. I want to notice thats I am using 2.2.1 CI, do not know if its work for CI 3.0.0 First at all download pChart and unpack it to "application/third_party/chart" folder (you can delete example folder btw) Then create new folder "libraries" in "application/third_party/chart". Inside this new folder create file pchart.php with next content PHP Code: <?php Now, I can create my controller function with example from pChart page: PHP Code: function chart(){ And in the end I got my render. Hope its help to you as well. RE: pChart 2.0 with Codeigniter - StevieB - 02-09-2015 Nice, thanks for sharing. RE: pChart 2.0 with Codeigniter - Hyper-X - 06-01-2015 thanks |