Class DialChart


public class DialChart extends RoundChart

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.

  • Constructor Details

    • DialChart

      public DialChart(CategorySeries dataset, DialRenderer renderer)

      Builds a new dial chart instance.

      Parameters
      • dataset: the series dataset

      • renderer: 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: the canvas to paint to

      • x: the top left x value of the view to draw to

      • y: the top left y value of the view to draw to

      • width: the width of the view to draw to

      • height: the height of the view to draw to

      • paint: the paint

      Specified by:
      draw in class AbstractChart