A plugin renderer for jqPlot to draw a bar plot. Draws series as a line.
$.jqplot. | A plugin renderer for jqPlot to draw a bar plot. |
Properties | |
barPadding | Number of pixels between adjacent bars at the same axis value. |
barMargin | Number of pixels between groups of bars at adjacent axis values. |
barDirection | ‘vertical’ = up and down bars, ‘horizontal’ = side to side bars |
barWidth | Width of the bar in pixels (auto by devaul). |
shadowOffset | offset of the shadow from the slice and offset of each succesive stroke of the shadow from the last. |
shadowDepth | number of strokes to apply to the shadow, each stroke offset shadowOffset from the last. |
shadowAlpha | transparency of the shadow (0 = transparent, 1 = opaque) |
waterfall | true to enable waterfall plot. |
groups | group bars into this many groups |
varyBarColor | true to color each bar of a series separately rather than have every bar of a given series the same color. |
highlightMouseOver | True to highlight slice when moused over. |
highlightMouseDown | True to highlight when a mouse button is pressed over a slice. |
highlightColors | an array of colors to use when highlighting a bar. |
transposedData | NOT IMPLEMENTED YET. |
this.varyBarColor = false
true to color each bar of a series separately rather than have every bar of a given series the same color. If used for non-stacked multiple series bar plots, user should specify a separate ‘seriesColors’ array for each series. Otherwise, each series will set their bars to the same color array. This option has no Effect for stacked bar charts and is disabled.
this.transposedData = true
NOT IMPLEMENTED YET. True if this is a horizontal bar plot and x and y values are “transposed”. Tranposed, or “swapped”, data is required prior to rev. 894 builds of jqPlot with horizontal bars. Allows backward compatability of bar renderer horizontal bars with old style data sets.
Number of pixels between adjacent bars at the same axis value.
this.barPadding = 8
Number of pixels between groups of bars at adjacent axis values.
this.barMargin = 10
‘vertical’ = up and down bars, ‘horizontal’ = side to side bars
this.barDirection = 'vertical'
Width of the bar in pixels (auto by devaul).
this.barWidth = null
offset of the shadow from the slice and offset of each succesive stroke of the shadow from the last.
this.shadowOffset = 2
number of strokes to apply to the shadow, each stroke offset shadowOffset from the last.
this.shadowDepth = 5
transparency of the shadow (0 = transparent, 1 = opaque)
this.shadowAlpha = 0.08
true to enable waterfall plot.
this.waterfall = false
group bars into this many groups
this.groups = 1
true to color each bar of a series separately rather than have every bar of a given series the same color.
this.varyBarColor = false
True to highlight slice when moused over.
this.highlightMouseOver = true
True to highlight when a mouse button is pressed over a slice.
this.highlightMouseDown = false
an array of colors to use when highlighting a bar.
this.highlightColors = []
NOT IMPLEMENTED YET.
this.transposedData = true