The DojoBarGraph widget creates bar graphs. Use this widget
to create vertical or horizontal bar graphs.
Properties
- barGap
- The gap, in number of pixels, between the bars. The default value
is 5.
- data
- Required. The data that the graph represents. Data must be in
array format.
- height
- The total height of the graph
- themeColor
- The color of the graph. You can use blue, red, cyan, green, orange,
and purple. The default value is blue.
- vertical
- Indicates whether the bars are vertical or horizontal. The default
value is true.
- true
- The bars are vertical.
- false
- The bars are horizontal.
- width
- The total width of the graph
Example
The following example shows the code and output for a
bar graph that contains four columns:
dbg DojoBarGraph {barGap=5,vertical=true, data=[4, 1,5,3], ThemeColor="blue",
width=350, height=350};