The DojoLineGraph widget displays line graphs.
Fields
- data
- The data that is plotted on the graph
- height
- The height of the graph in pixels
- maxX
- The maximum value to be displayed at the left of the x axis of
the graph. The default is based on the number of elements in the data property.
- maxY
- The maximum value to be displayed at the top of the y axis of
the graph. The default is based on the value of the data property.
- minX
- The minimum value to be displayed at the right of the x axis of
the graph. This property defaults to 0.
- minY
- The minimum value to be displayed at the bottom of the y axis
of the graph. This property defaults to 0.
- showMarkers
- Defines whether a marker, or point, is shown on the line for
the data that is being graphed. Valid values are true and false.
- true
- A marker is shown on the line for each of the items being graphed.
- false
- A marker is not shown on the line for each of the items being
graphed.
- showShadows
- Defines if a shadow for the graph line is shown. Valid values
are true and false.
- true
- Graph shadow is shown.
- false
- Graph shadow is not shown.
- tension
- Sets the curvature of the graph
- themeColor
- The color of the graph. The color can be blue, red, cyan, green,
orange, or purple.
- width
- The width of the graph in pixels
Other supported fields and functions are described in the following
topics in the EGL Programmer’s Guide: “Rich UI widget fields” and
”Rich UI widget functions.”
Use of this widget requires the following statement:
import dojo.widgets.DojoLineGraph;