Contents Previous Next

10.8.3 Day scale

By default the day scale show the first letter of the week day but it is also posible to format the day scale in a number of different ways. Days can have one of the following scale formats.

The formatting is specified by using the SetStyle() method as in

 $graph ->scale->day-> SetStyle( DAYSTYLE_LONG);

The graphical formatting possibilities for days allow the possibility to specify a different color for the weekend background and also for the Sunday.

In addition to this there is also a possibility to choose whether or not the weekend background should be extended vertically down over the plot area. (the default). Since that is a property more of the whole plot this behavior is modified with a call to the method

 UseWeekendBackground()

of the scale, e.g.
 

 $graph->scale->UseWeekendBackground(false );


Contents Previous Next