xaxis-formatter attribute

Type:formatter
Inherited:no
Used By:Graph elements except piegraph
Default:integer or floating point
See:lang x xaxis yaxis-formatter

How to format the values on the x axis. See here for more information on formatters.

Valid values are:

The default depends on the data being plotted - if all the specified values are integers, the default will be integer(), otherwise it's floatingpoint().

linegraph { xaxis-formatter:integer(); yaxis-formatter:currency(); }

<linegraph xaxis-formatter="date()">
  <datacurve name="Plotting dates">
    <sample x="2001-10-01" value="1"/>
    <sample x="2001-10-03" value="2"/>
    <sample x="2001-10-08" value="3"/>
  </datacurve>
</linegraph>