Hi,
this little, but handy example code explains how to create a chart based on the result of a listview query leveraging Google's Chart API.
The given example counts the number of accounts in postalcode areas, passes the results to Google and invokes their new "Chart Editor", which allows the user to select chart type and customize appearance.
The code implents a custom controller in the Accounts module and extends the listview actions menu. The files should be copied into custom/modules/Accounts (controller.php, accounts_by_plz.php) and custom/modules/Accounts/views (view.list.php)
Thanks to John Mertic for his helpful code snipplets.
Cheers, Robert


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks