Class FunnelSeries


public class FunnelSeries extends CategoricalSeries

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

  • Constructor Details

    • FunnelSeries

      public FunnelSeries(String name)

      Creates an empty funnel.

      Parameters
      • name: the series name
  • Method Details

    • paint

      public void paint(ChartContext ctx)
      Description copied from class: Series

      Paints the series.

      Parameters
      • ctx: the current frame: graphics, plot area, axes and animation progress
      Specified by:
      paint in class Series
    • hitTest

      public ChartPoint hitTest(ChartContext ctx, int x, int y, int radius)
      Description copied from class: Series

      Finds 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

      Overrides:
      hitTest in class Series
    • getPoint

      public ChartPoint getPoint(ChartContext ctx, int i)
      Description copied from class: Series
      The point at index for a shared tooltip, or null.
      Overrides:
      getPoint in class Series