Plugin renderer to draw a bubble chart. A Bubble chart has data points displayed as colored circles with an optional text label inside. To use the bubble renderer, you must include the bubble renderer like:
<script language="javascript" type="text/javascript" src="../src/plugins/jqplot.bubbleRenderer.js"></script>
Data must be supplied in the form:
[[x1, y1, r1, <label or {label:'text', color:color}>], ...]
where the label or options object is optional.
Note that all bubble colors will be the same unless the “varyBubbleColors” option is set to true. Colors can be specified in the data array or in the seriesColors array option on the series. If no colors are defined, the default jqPlot series of 16 colors are used. Colors are automatically cycled around again if there are more bubbles than colors.
Bubbles are autoscaled by default to fit within the chart area while maintaining relative sizes. If the “autoscaleBubbles” option is set to false, the r(adius) values in the data array a treated as literal pixel values for the radii of the bubbles.
Properties are passed into the bubble renderer in the rendererOptions object of the series options like:
seriesDefaults: { renderer: $.jqplot.BubbleRenderer, rendererOptions: { bubbleAlpha: 0.7, varyBubbleColors: false } }
$.jqplot. | Plugin renderer to draw a bubble chart. |
Properties | |
varyBubbleColors | True to vary the color of each bubble in this series according to the seriesColors array. |
autoscaleBubbles | True to scale the bubble radius based on plot size. |
autoscaleMultiplier | Multiplier the bubble size if autoscaleBubbles is true. |
autoscalePointsFactor | Factor which decreases bubble size based on how many bubbles on on the chart. |
escapeHtml | True to escape html in bubble label text. |
highlightMouseOver | True to highlight bubbles when moused over. |
highlightMouseDown | True to highlight when a mouse button is pressed over a bubble. |
highlightColors | An array of colors to use when highlighting a slice. |
bubbleAlpha | Alpha transparency to apply to all bubbles in this series. |
highlightAlpha | Alpha transparency to apply when highlighting bubble. |
bubbleGradients | True to color the bubbles with gradient fills instead of flat colors. |
showLabels | True to show labels on bubbles (if any), false to not show. |
True to vary the color of each bubble in this series according to the seriesColors array.
this.varyBubbleColors = true
True to scale the bubble radius based on plot size.
this.autoscaleBubbles = true
Multiplier the bubble size if autoscaleBubbles is true.
this.autoscaleMultiplier = 1.0
Factor which decreases bubble size based on how many bubbles on on the chart.
this.autoscalePointsFactor = -0.07
True to escape html in bubble label text.
this.escapeHtml = true
True to highlight bubbles when moused over.
this.highlightMouseOver = true
True to highlight when a mouse button is pressed over a bubble.
this.highlightMouseDown = false
An array of colors to use when highlighting a slice.
this.highlightColors = []
Alpha transparency to apply to all bubbles in this series.
this.bubbleAlpha = 1.0
Alpha transparency to apply when highlighting bubble.
this.highlightAlpha = null
True to color the bubbles with gradient fills instead of flat colors.
this.bubbleGradients = false
True to show labels on bubbles (if any), false to not show.
this.showLabels = true