Client API. The Codename One framework your app is built on: this runs on the device, not in a backend.

public class FunnelSeries

  1. Object
  2. Series
  3. CategoricalSeries
  4. 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});

A funnel

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

Constructor details

FunnelSeries

public FunnelSeries(String name)
Creates an empty funnel.

Parameters

name String
the series name

Method details

paint

public void paint(ChartContext ctx)
Paints the series.

Parameters

ctx ChartContext
the current frame: graphics, plot area, axes and animation progress

hitTest

public ChartPoint hitTest(ChartContext ctx, int x, int y, int radius)
Finds the data point nearest a screen position.

Parameters

ctx ChartContext
the frame the series was last painted in
x int
chart relative x
y int
chart relative y
radius int
how far from the point a touch may land and still hit it

Returns

the point, or null

getPoint

public ChartPoint getPoint(ChartContext ctx, int i)
The point at index for a shared tooltip, or null.