CodeIgniter Forums
Flot.js, Codeigniter and pulling data from Piwik Lib - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Flot.js, Codeigniter and pulling data from Piwik Lib (/thread-56581.html)



Flot.js, Codeigniter and pulling data from Piwik Lib - El Forum - 01-04-2013

[eluser]the_unforgiven[/eluser]
Hi All,

I really stumbled here, I'm using flot.js to generate a graph to show amount of visits (tried Google but the stupid Oauth thing happens every time so gone with Piwik, plus its better)

So i have done tutorials on the net and tried different libs and methods but no joy.

Here's all my code in parts controller header etc in pastie.org

Controller

View File

Then in my header i have the two javascript files for flot.js and jquery

like so: http://pastie.org/5620692

So i need to know how to get the varibles to work with all of which i have shown you when i do dummy data like: Dummy Java it works!

Would some please help me get this right much appreciation

Cheers!


Flot.js, Codeigniter and pulling data from Piwik Lib - El Forum - 01-04-2013

[eluser]the_unforgiven[/eluser]
Look through some other posts on the net seems like i need to json_encode or something, anyone had experience with this pulling data from $vars and doing a print_r($visits) shows the visits which is currently 6 so do i need to do something else in order to get this within the graph?


Flot.js, Codeigniter and pulling data from Piwik Lib - El Forum - 01-04-2013

[eluser]the_unforgiven[/eluser]
anyone willing to help?