Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.
public class FunnelSeries
- Object
- Series
- CategoricalSeries
- FunnelSeries
A funnel: stages of a process as centred bands whose widths are proportional to their values, each labelled with its value and the share of the first stage that reached it.
new FunnelSeries("Signup").setData(new String[]{"Visited", "Signed up", "Paid"}, new double[]{1000, 300, 45});
Constructors
public FunnelSeries(String name) | Creates an empty funnel. |
Methods
public void paint(ChartContext ctx) | Paints the series. |
public ChartPoint hitTest(ChartContext ctx, int x, int y, int radius) | Finds the data point nearest a screen position. |
public ChartPoint getPoint(ChartContext ctx, int i) | The point at index for a shared tooltip, or null. |
Inherited methods
From CategoricalSeries
isCartesian, setData, setValue, setColors, size, getLabel, getValue, getColor, isShown, displayValue, isEntering, displayTotal, getTotal, largestShown, scaledShownTotal, percentOf, captureTransitionStart, captureEntryStart, getLegendEntryCount, getLegendEntryName, paintLegendEntrySymbol, isLegendEntryVisible, toggleLegendEntry, getPointCount, formatTooltip, point, collectTableRows
From Series
getName, setName, getColor, setColor, isVisible, setVisible, isSecondaryAxis, setSecondaryAxis, isShowValues, setShowValues, getValueFormatter, setValueFormatter, getChart, getXBounds, getXBoundsWithin, getYBounds, getSelectablePointCount, isPointCountFromLayout, paintLegendSymbol, transitionEnded, formatValue, handleTap, attached, detached, dataChanged, repaintChart, getVisibilityFraction, isGap, lerp
Constructor details
FunnelSeries
public FunnelSeries(String name)Parameters
nameString- the series name
Method details
paint
public void paint(ChartContext ctx)Parameters
ctxChartContext- the current frame: graphics, plot area, axes and animation progress
hitTest
public ChartPoint hitTest(ChartContext ctx, int x, int y, int radius)Parameters
ctxChartContext- the frame the series was last painted in
xint- chart relative x
yint- chart relative y
radiusint- how far from the point a touch may land and still hit it
Returns
getPoint
public ChartPoint getPoint(ChartContext ctx, int i)index for a shared tooltip, or null.