class %ZEN.SVGComponent.bubbleChart
extends chart
This is an SVG chart component that displays a bubble chart.
This chart expects at least 2 data series, the first supplying x values and the second
supplying y values.
Additional series are interpreted as:
Series 2: radius (radius of each bubble).
Series 3: colors (items are grouped into buckets by value).
Series 4: opacity (opacity of items from 0 to 1 -- values are not normalized).
parameter DEFAULTMARKERSVISIBLE = 0;
Default value for the markersVisible property.
parameter DEFAULTPLOTTOEDGE = 1;
Default value for plotToEdge property.
property opacity
as %ZEN.Datatype.float [ InitialExpression = 0.5 ];
Default opacity (from 0 to 1) for bubbles. If there is a opacity series, its
values are scaled and multiplied by this value.
property radius
as %ZEN.Datatype.float [ InitialExpression = 3 ];
Default radius (in logical units) for bubbles. If there is a radius series, its
values are scaled and multiplied by this value.
property showQuadrant
as %ZEN.Datatype.boolean [ InitialExpression = 1 ];
If true, then draw background "quadrants".
property showRegression
as %ZEN.Datatype.boolean [ InitialExpression = 0 ];
If true, then draw a computed linear regression line.
property xCenterValue
as %ZEN.Datatype.float;
Center value along x-axis. Used to draw background "quadrants".
property yCenterValue
as %ZEN.Datatype.float;
Center value along y-axis. Used to draw background "quadrants".
method findDataRange()
[ Language = javascript ]
Internal method: return (as an object) the minimum
and maximum data values for this chart. This is used
for ranges that are automatically calculated.
method getLegendLabels()
[ Language = javascript ]
Return an array of labels to display within the Legend box.
For xy chart we have to skip the first series, as it contains
x-values, and not a logical data series.
method getSeriesNames()
[ Language = javascript ]
Override and use seriesNames only.
method getXAxisTitle()
[ Language = javascript ]
Return the x axis title.
method getXAxisType()
[ Language = javascript ]
Return the type of x axis (category or value) used by
this chart.
method getYAxisTitle()
[ Language = javascript ]
Return the y axis title.
method getYAxisType()
[ Language = javascript ]
Return the type of y axis (category or value) used by
this chart.
method renderBands()
[ Language = javascript ]
Draw the upper/lower bands for the chart.
Override standard "bands" and replace with "quadrant" boxes.
method renderSeries(group)
[ Language = javascript ]
Draw data series for this chart.
group is the SVG container for the chart components.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.