When you have just created the graph you would most likely want to change the way it looks.
For all elements you can basically modify the apperance by changing:
You CAN change all of the above for all elements, but some element will not "use" them all,
ie. a LineChart will not use the "Fill Style".
Modifying line/fill style
There exist the following line styles:
First of all you must create the line-/fillstyle:
2 $SomeColor =& $Graph->newColor(new Color(R, G, B));
3 // creates a color to use
5 $Linestyle =& new Image_Graph_Line_Solid($SomeColor);
6 // create the line style as a solid line with the newly created color
8 $Fillstyle =& new Image_Graph_Fill_Solid($SomeColor);
9 // create the fill style as a solid fill with the newly created color
When you have created the style you must set it on the graph element:
3 // set the line style
6 // set the fill style
It's that easy!.
In the case of the border and background it's basically "just" another linestyle and
another fillstyle to set on the element:
3 // set the border style
6 // set the background style
Using another font
To use another font for displaying text on the element, create a font and assigned it to
the element in much the same way as the line-/fillstyle described above. There exist the
following types of fonts:
When you have created the font, first you have to add it to the graph.
3 // add the font to the Graph
When you have added it to the graph you make the graph element use the font in a similar way to the
3 // set the font