https://github.com/coderberry/zing-charts
Grails Zing Chart Plugin
https://github.com/coderberry/zing-charts
Last synced: 15 days ago
JSON representation
Grails Zing Chart Plugin
- Host: GitHub
- URL: https://github.com/coderberry/zing-charts
- Owner: coderberry
- License: mit
- Created: 2011-02-21T23:16:53.000Z (over 15 years ago)
- Default Branch: master
- Last Pushed: 2011-02-22T15:44:44.000Z (over 15 years ago)
- Last Synced: 2025-01-10T21:03:48.767Z (over 1 year ago)
- Language: JavaScript
- Homepage: http://github.com/cavneb/zing-chart
- Size: 2.14 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
Zing Chart Plugin
=================
This plugin allows you to easily integrate Zing Charts ([http://www.zingchart.com](http://www.zingchart.com)) into your Grails projects.
To use the plugin, you must have the javascript include in your HTML header:
...
...
In the body where you want the chart to appear, use the taglib provided:
* type - Type of chart. See [http://www.zingchart.com/learn/docs.php](http://www.zingchart.com/learn/docs.php) for available types (ie. 'area' or 'bar3d')
* width - Display width of the chart
* height* - Display height of the chart
* container - element ID of the chart container (div)
* data - Hash Map of data. Key is the name of the data, value is an array of values. See below for examples
* xLabels - Array of labels
* effect - Animation effect. See [http://www.zingchart.com/learn/docs.php](http://www.zingchart.com/learn/docs.php) for available effects
### Example Data
def labels = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat']
def data = [
'Visitors': [100, 300, 200, 240, 500, 100, 80],
'Purchases': [30, 50, 12, 20, 55, 20, 10]
]