create
[ class tree: create ] [ index: create ] [ all elements ]

example

  1. <?php
  2.  
  3. /**
  4.  * Insert a 3D area chart into a Word document.
  5.  *
  6.  * @category   Phpdocx
  7.  * @package    examples
  8.  * @subpackage easy
  9.  * @copyright  Copyright (c) 2009-2013 Narcea Producciones Multimedia S.L.
  10.  *              (http://www.2mdc.com)
  11.  * @license    http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php
  12.  * @version    2012.12.26
  13.  * @link       http://www.phpdocx.com
  14.  * @since      File available since Release 2.4
  15.  */
  16. require_once '../../classes/CreateDocx.inc';
  17.  
  18. $docx new CreateDocx();
  19.  
  20. $legends array(
  21.     'legend' => array('sequence 1''sequence 2''sequence 3'),
  22.     'Category 1' => array(9.32.42),
  23.     'Category 2' => array(2.54.41),
  24.     'Category 3' => array(3.51.80.5),
  25.     'Category 4' => array(1.581)
  26. );
  27.  
  28. $args array(
  29.     'data' => $legends,
  30.     'type' => 'area3DChart',
  31.     'title' => 'Area 3D chart stacked',
  32.     'color' => 5,
  33.     'sizeX' => 15'sizeY' => 15,
  34.     'showPercent' => 1,
  35.     'font' => 'Lucida Console',
  36.     'groupBar' => 'stacked',
  37.     'legendPos' => 't',
  38.     'border' => 1,
  39.     'haxLabel' => 'Abscissa',
  40.     'vaxLabel' => 'Ordinate',
  41.     'vaxLabelDisplay' => 'rotated',
  42.     'hgrid' => 2,
  43.     'vgrid' => 1
  44. );
  45. $docx->addChart($args);
  46.  
  47. $docx->createDocx('../docx/example_chart_area3d');

Documentation generated on Mon, 13 Jan 2014 13:44:05 +0100 by phpDocumentor 1.4.4