x attribute

Used By:arcto, bezierto, circle, lineto, moveto, sample
See:cx1 cx2 cy1 cy2 xaxis-formatter y

In the shape elements, sets the position of the left edge of the element.

In the sample element, sets the position on the x axis to place the sample. May be a number or a date in any one of the recognized date formats - ISO8601 (which is any prefix of looks like "yyyy-mm-dd HH:MM:SS") or RFC822, which is the "Mon, 4 Jan 2002 14:23:24 GMT+1" format used in emails. If using a data, be sure to set the xaxis-formatter to "date()", othewise garbage will result.

Draw a line from (20,20) to (80,80) in the 100x100 box

<shape width="100" height="100">
    <moveto x="20" y="20"/>
    <lineto x="80" y="80"/>

Draw a line graph

<linegraph width="100" height="100" xaxis-formatter="date()">
  <datacurve name="total sales">
    <sample x="2002-10-15" y="103"/>
    <sample x="2002-10-16" y="93"/>
    <sample x="2002-10-17" y="27"/>