<axesgraph width="300" height="300"> <axis pos="left" type="float" zerointersection="true" /> <axis pos="bottom" type="float" zerointersection="true" /> <functionseries name="Sine" method="java.lang.Math.sin" min="-3.14" max="3.14" /> <functionseries name="CoSine" method="java.lang.Math.cos" min="-3.14" max="3.14" /> </axesgraph>
| depth | Real > 0 | optional | XML / Tag Library |
| constructor | Constructor | optional | XML / Tag Library |
org.faceless.graph2.FunctionLineSeries, which will be used to determine the
value of the function. The constructor may take doubles, floats, ints, booleans, chars or Strings - so
some example values for this attribute would be com.yourcompany.YourClass(12, My String Here).
or perhaps simple com.yourcompany.YourClass().
| method | Method name | optional | XML / Tag Library |
java.lang.Math.sin.
| min | Real | optional | XML / Tag Library |
| max | Real | optional | XML / Tag Library |
| series | null | optional | XML / Tag Library |
| name | String | mandatory | XML / Tag Library |
| pos | (top | bottom) (left | right) | optional | XML / Tag Library |
<axesgraph width="300" height="300">
<axis pos="bottom" type="date">
<teeth rotate="90" align="left middle" />
</axis>
<axis pos="top" type="bar" />
<lineseries pos="bottom left" name="Amount over the year">
<data x="2003-01-01" y="20" />
...
<data x="2003-12-31" y="17" />
</lineseries>
<barseries pos="top left" name="Average amount per weekday">
<data x="Sun" y="18" />
...
<data x="Sat" y="21" />
</barseries>
</axesgraph>| color | Paint | optional | XML / Tag Library |
| bordercolor | Color | optional | XML / Tag Library |
| linethickness | Real > 0 | optional | XML / Tag Library |
| dash | Real[] | optional | XML / Tag Library |
dash="5,5" to create a regular dash pattern,
or dash="6,2,2,2" to create a dash/dot type pattern.
| href | URI | optional | Tag Library Only |
| target | frame-target | optional | Tag Library Only |
| title | Text | optional | Tag Library Only |
| onclick | script | optional | Tag Library Only |
click event occurs on a region of the graph
| ondblclick | script | optional | Tag Library Only |
dblclick event occurs on a region of the graph
| onkeydown | script | optional | Tag Library Only |
keydown event occurs on a region of the graph
| onkeypress | script | optional | Tag Library Only |
keypress event occurs on a region of the graph
| onkeyup | script | optional | Tag Library Only |
keyup event occurs on a region of the graph
| onmousedown | script | optional | Tag Library Only |
mousedown event occurs on a region of the graph
| onmousemove | script | optional | Tag Library Only |
mousemove event occurs on a region of the graph
| onmouseout | script | optional | Tag Library Only |
mouseout event occurs on a region of the graph
| onmouseover | script | optional | Tag Library Only |
mouseover event occurs on a region of the graph
| onmouseup | script | optional | Tag Library Only |
mouseup event occurs on a region of the graph