begin(400, 250); // Title $flashChart->title('Example 5 - Mixed: Hits per Day vs. # Visits'); // Configure Grid style and legends $flashChart->configureGrid( array( 'x_axis' => array( 'step' => 1, 'legend' => 'Day' ), 'y_axis' => array( 'legend' => '#Hits', ) ) ); // Prepare some random data (10 points) $visits = array(); $random_hits2 = array(); for ($i=0; $i < 10; $i++) { $visits[] = rand(10,50); $random_hits2[] = rand(50,100); } // Register each data set with its information. $data = array( 'Hits' => array( 'color' => '#afe342', 'font_size' => 11, 'data' => $random_hits2, 'graph_style' => 'line_dot', ), 'Visits' => array( 'color' => '#324aef', 'font_size' => 11, 'data' => $visits, 'graph_style' => 'bar', ) ); $flashChart->setData($data); // Set Ranges in the chart $flashChart->setRange('y', 0, 100); $flashChart->setRange('x', 0, 10); // Show the graph echo $flashChart->render(); ?>