fusioncharts plugin |
[eluser]mmiranda[/eluser]
Hi, i found a very simple tutorial on using fusionchart as plugin, its here: http://www.ikawka.com/2008/12/fusion-chart/ would any of you mind to share with me how to create the view? I think mychart() will be in the controller, the example is not using a model, so the missing part is the view, am i correct?
[eluser]Mike Ryan[/eluser]
Hi, Correct - you just need to pass the chart data to a view and echo it. Create this function in your controller: Code: function mychart(){ The most basic view would look like this: Code: //file: chart_test.php I haven't used this plugin myself, but the above code should get a basic chart on the page... or at least an error message ;-) If it doesn't work, post any error messages or output and I'll take a look. btw, amCharts is a nice Flash charts package, I found it very easy to integrate with CI, including some cool stuff like automatic updates via ajax.
[eluser]Mike Ryan[/eluser]
I'm afraid not - it was something I put together when I was testing Flash charting packages. I have actually decided to use pChart instead - not as "sexy" as Flash, but a lot more accessible. Next time I use amCharts in a project I'll write a proper library for it. |
Welcome Guest, Not a member yet? Register Sign In |