Login   Register  
PHP Classes
elePHPant
Icontem

File: sample_area.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Tom Schaefer  >  QOpenFlash  >  sample_area.php  >  Download  
File: sample_area.php
Role: Example script
Content type: text/plain
Description: Sample Area Chart
Class: QOpenFlash
Display charts using Open Flash
Author: By
Last change: renaming
Date: 2008-06-08 02:33
Size: 753 bytes
 

Contents

Class file image Download
<?php

include_once 'QOpenFlash.class.php';
// generate some random data
$data = array();
$labels = array();

for( 
$i=0$i<16$i++ ){
  
$data[] = $i*$i;
  
$labels[] = $i;
}

$g = new QChartOpenFlash();
$g    ->setTitle'Area''{font-size:20px; color: #ffffff; margin:10px; background-color: #d070ac; padding: 5px 15px 5px 15px;}' )
    ->
setBgColor('#FDFDFD')
    ->
setData($data)
    ->
setXLabels$labels )
    ->
setAreaHollow(23'#C11B01''Squared'12'#8E560F')
    ->
setXLabelStyle(  10'#000000'02  )
    ->
setXAxisColor'#e0e0e0''#ADB5C7' )
    ->
setYAxisColor'#e0e0e0''#ADB5C7' )
    ->
setYMin)
    ->
setYMax225 )
    ->
setYSteps15 )
    ->
setXAxisSteps)
    ->
setYLegend'Value'12'#736AFF' );
    
echo 
$g->render();
?>