xaxis attribute

Type:various
Inherited:no
Used By:Graph elements except piegraph
Default:Black 7pt Helvetica
See:align font-family font-size font-style font-weight vertical-align xaxis-label y yaxis zaxis

The xaxis family of attributes set the style to print the markers on the y axis.

xaxis-rotate sets the rotation of the text, in degrees clockwise from 12 o'clock. Very useful when plotting bargraphs with long labels.

xaxis-color sets the color of the markers

xaxis-font-family sets the font to use to display the markers, in the same way as font-family

xaxis-font-style sets the font style to use, in the same way as font-style

xaxis-font-weight sets the font weight to use, in the same way as font-weight

xaxis-font-size sets the size of the font to use, in the same way as font-size

xaxis-align and xaxis-valign set the alignment of the text. Generally these are set by the system to an appropriate value, but can be set separately in the same way as the align or vertical-align attributes.

This example shows how to rotate the labels by 90 degrees - useful for long values such as these.

<bargraph xaxis-rotation="90" xaxis-align="left" xaxis-vertical-align="middle">
  <gdata name="Tomboctou" value="10"/>
  <gdata name="Saskatchewan" value="10"/>
  <gdata name="Aberystwyth" value="10"/>
  <gdata name="Vladivostok" value="10"/>
</bargraph>