Compound charts: Expose data series count property
[project/chart.git] / README.txt
1
2 AUTHORS
3 -------
4
5  * Tj Holowaychuk <http://www.350designs.com/>
6  * Jimmy Berry ("boombatower", http://drupal.org/user/214218)
7
8 DOCUMENATION
9 ------------
10
11  * http://code.google.com/p/drupal-chart-api/w/list
12  * chart_build() in chart.module
13  * chart.api.php
14
15 EXAMPLE USING THEME()
16 ---------------------
17
18 $chart = array(
19   '#chart_id' => 'test_chart',
20   '#title' => t('Servings'),
21   '#type' => CHART_TYPE_PIE_3D,
22 );
23
24 $chart['#data']['fruits'] = 3;
25 $chart['#data']['meats']  = 2;
26 $chart['#data']['dairy']  = 5;
27
28 echo theme('chart', array('chart' => $chart));
29
30 EXAMPLE USING RENDERABLE ARRAYS
31 -------------------------------
32 Render Arrays in Drupal 7: http://drupal.org/node/930760
33
34 $page['chart'] = array(
35   '#theme' => 'chart',
36   '#chart_id' => 'test_chart',
37   '#title' => t('Servings'),
38   '#type' => CHART_TYPE_PIE_3D,
39   '#data' => array(
40     'fruits' => 3,
41     'meats' => 2,
42     'dairy' => 5,
43   );
44 );
45