public class DialChart

  1. Object
  2. AbstractChart
  3. RoundChart
  4. DialChart

Presents values from a CategorySeries as gauges on a dial.

Configure the dial appearance via a DialRenderer and supply both the dataset and renderer to the constructor. Dial charts are typically wrapped in a com.codename1.charts.ChartComponent so they can be placed inside regular Codename One layouts.

Constructors

public DialChart(CategorySeries dataset, DialRenderer renderer)Builds a new dial chart instance.

Methods

public void draw(Canvas canvas, int x, int y, int width, int height, Paint paint)The graphical representation of the dial chart.

Inherited fields

Inherited methods

Constructor details

DialChart

public DialChart(CategorySeries dataset, DialRenderer renderer)
Builds a new dial chart instance.

Parameters

dataset CategorySeries
the series dataset
renderer DialRenderer
the dial renderer

Method details

draw

public void draw(Canvas canvas, int x, int y, int width, int height, Paint paint)
The graphical representation of the dial chart.

Parameters

canvas Canvas
the canvas to paint to
x int
the top left x value of the view to draw to
y int
the top left y value of the view to draw to
width int
the width of the view to draw to
height int
the height of the view to draw to
paint Paint
the paint