Created
November 21, 2010 03:22
-
-
Save cjsaylor/708416 to your computer and use it in GitHub Desktop.
GChart example use
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = array( | |
'labels' => array( | |
array('string' => 'Sample'), | |
array('number' => 'Piston 1'), | |
array('number' => 'Piston 2') | |
), | |
'data' => array( | |
array('S1', 74.01, 74.03), | |
array('S2', 74.05, 74.04), | |
array('S3', 74.03, 74.01), | |
array('S4', 74.00, 74.02), | |
array('S5', 74.12, 74.05), | |
array('S6', 74.04, 74.04), | |
array('S7', 74.05, 74.06), | |
array('S8', 74.03, 74.02), | |
array('S9', 74.01, 74.03), | |
array('S10', 74.04, 74.01), | |
), | |
'title' => 'Piston Ring Diameter', | |
'type' => 'line' | |
); | |
echo $this->GChart->start('test'); | |
echo $this->GChart->visualize('test', $data); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment