Class FunnelSeries
java.lang.Object
com.codename1.ui.chart.Series
com.codename1.ui.chart.series.CategoricalSeries
com.codename1.ui.chart.series.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});

-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPoint(ChartContext ctx, int i) The point atindexfor a shared tooltip, or null.hitTest(ChartContext ctx, int x, int y, int radius) Finds the data point nearest a screen position.voidpaint(ChartContext ctx) Paints the series.Methods inherited from class CategoricalSeries
captureEntryStart, captureTransitionStart, collectTableRows, displayTotal, displayValue, formatTooltip, getColor, getLabel, getLegendEntryCount, getLegendEntryName, getPointCount, getTotal, getValue, isCartesian, isEntering, isLegendEntryVisible, isShown, largestShown, paintLegendEntrySymbol, percentOf, point, scaledShownTotal, setColors, setData, setValue, size, toggleLegendEntryMethods inherited from class Series
attached, dataChanged, detached, formatValue, getChart, getColor, getName, getSelectablePointCount, getValueFormatter, getVisibilityFraction, getXBounds, getXBoundsWithin, getYBounds, handleTap, isGap, isPointCountFromLayout, isSecondaryAxis, isShowValues, isVisible, lerp, paintLegendSymbol, repaintChart, setColor, setName, setSecondaryAxis, setShowValues, setValueFormatter, setVisible, transitionEnded
-
Constructor Details
-
FunnelSeries
Creates an empty funnel.
Parameters
name: the series name
-
-
Method Details
-
paint
Description copied from class:SeriesPaints the series.
Parameters
ctx: the current frame: graphics, plot area, axes and animation progress
-
hitTest
Description copied from class:SeriesFinds the data point nearest a screen position.
Parameters
-
ctx: the frame the series was last painted in -
x: chart relative x -
y: chart relative y -
radius: how far from the point a touch may land and still hit it
Returns
the point, or null
-
-
getPoint
Description copied from class:SeriesThe point atindexfor a shared tooltip, or null.
-