Previous Up Next
Tag table, tt, th, tr, td Tags Xml2Pdf Tag value
Tag graph

Tag graph

How to use the tag graph ?

Guillaume Luchet, guillaume@geelweb.org
Copyright © 2006, Guillaume Luchet
BSD License

Tag graph

The tag graph is used to add a graph to a PDF document. See the graph type manual to know how to define graph type.

Example :

  1. <!-- Draw a circle graph whith five portions -->
  2. <graph type='circle' width='100' height='80' mode='3D' legend='%l (%p)' fontsize='10'>
  3.     <value legend='Lille' data='1510' color='#f0f5ff'/>
  4.     <value legend='Paris' data='1610' color='#feefc1'/>
  5.     <value legend='Toulouse' data='1400' color='#ffaaaa'/>
  6.     <value legend='Lyon' data='700'/>
  7.     <value legend='Bordeaux' data='1001'/>
  8. </graph>

the tag attributes are:

  • type : graph plugin type name [string]

  • width : graph width [float]

  • height : graph height [float]

  • left : left margin [float]

  • top : top margin [float]

  • position : positionning mode [absolute|relative]

  • mode : visual effect [2D|3D]

  • legend : legend format [string]

    • %l : name

    • %v : value

    • %p : percent

  • color : graph color [string]

  • max : max scale value [integer]

  • repere : number of values for the scale

  • fontsize : scale font size

Previous Up Next
Tag table, tt, th, tr, td Tags Xml2Pdf Tag value

Documentation generated on Wed, 11 Oct 2006 22:27:10 +0200 by phpDocumentor 1.3.0