[ Index ]

PHP Cross Reference of MantisBT

title

Body

[close]

/library/ezc/Graph/src/options/ -> svg_driver.php (summary)

File containing the ezcGraphSvgDriverOption class

Copyright: Copyright (C) 2005-2009 eZ Systems AS. All rights reserved.
License: http://ez.no/licenses/new_bsd New BSD License
Version: 1.5
File Size: 272 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ezcGraphSvgDriverOptions:: (2 methods):
  __construct()
  __set()


Class: ezcGraphSvgDriverOptions  - X-Ref

Class containing the extended options for the SVG driver.

<code>
$graph = new ezcGraphPieChart();
$graph->background->color = '#FFFFFFFF';
$graph->title = 'Access statistics';
$graph->legend = false;

$graph->data['Access statistics'] = new ezcGraphArrayDataSet( array(
'Mozilla' => 19113,
'Explorer' => 10917,
'Opera' => 1464,
'Safari' => 652,
'Konqueror' => 474,
) );

$graph->driver->options->templateDocument = dirname( __FILE__ ) . '/template.svg';
$graph->driver->options->graphOffset = new ezcGraphCoordinate( 25, 40 );
$graph->driver->options->insertIntoGroup = 'ezcGraph';

$graph->render( 400, 200, 'tutorial_driver_svg.svg' );
</code>

__construct( array $options = array()   X-Ref
Constructor

param: array $options Default option array
return: void

__set( $propertyName, $propertyValue )   X-Ref
Set an option value

param: string $propertyName
param: mixed $propertyValue
return: void



Generated: Thu Jul 28 15:48:31 2011 Cross-referenced by PHPXref 0.7