File: graph.def

Recommend this page to a friend!
  Classes of Diogo Resende  >  Bar Graph generator  >  graph.def  >  Download  
File: graph.def
Role: Auxiliary data
Content type: text/plain
Description: Example of a definition file
Class: Bar Graph generator
Generates bar graphs from file definitions
Author: By
Last change: updated
Date: 17 years ago
Size: 695 bytes
 

Contents

Class file image Download
data {
  2000 = 3
  2001 = 10
  2002 = 0
  2003 = 6
  2004 = 3
}

graph {
  padding-left   = 20
  padding-top    = 30
  padding-right  = 20
  padding-bottom = 15
  background-color = #fff
  background-transparent = yes
  border-width = 0
  area-height = 100
  title-color = #ff0000
  title = BarGraph 0.1
  transparency = 50%
}

axis {
  step = 5
  background-color = #dddddd
  border-color = #888888
}

bar {
  ################## This is a comment line
  # both values are commented because I think default colors are very good ;)
  # background-color = #dddddd
  # border-color = #888888
  padding = 0
  width = 32
  height = 8
}

# more comming soon ;D
For more information send a message to info at phpclasses dot org.