Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Berry committed Feb 21, 2011
1 parent cbfc4e4 commit 24cb619
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions README.md
@@ -1,7 +1,7 @@
Zing Chart Plugin
=================

This plugin allows you to easily integrate Zing Charts (http://www.zingchart.com) into your Grails projects.
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:

Expand All @@ -15,21 +15,15 @@ In the body where you want the chart to appear, use the taglib provided:

<zing:chart type="area" width="700" height="350" container="acceptToConvertChart" data="${data}" xLabels="${labels}" effect="4" />

*type* - Type of chart. See 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 for available effects

** Example Data
* 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 = [
Expand Down

0 comments on commit 24cb619

Please sign in to comment.