CodeIgniter Forums

Full Version: Flot.js, Codeigniter and pulling data from Piwik Lib
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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!

El Forum

[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?

El Forum

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