# Class ChartUtil

java.lang.Object
com.codename1.charts.ChartUtil

public class ChartUtil extends Object
A utility class for painting a chart onto a Graphics context. This is a low level API. You should use the `ChartComponent` class instead.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChartUtil()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `paintChart(Graphics g, AbstractChart chart, Rectangle bounds, int absX, int absY)`
  Draws the given chart onto the given graphics

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ChartUtil

    public ChartUtil()

- ## Method Details

  - ### paintChart

    public void paintChart(Graphics g, AbstractChart chart, Rectangle bounds, int absX, int absY)

    Draws the given chart onto the given graphics

    ###### Parameters

    - `g`: the graphics object

    - `chart`: the chart object

    - `bounds`: the bounds in which the chart should be drawn within the graphics

    - `absX`

    - `absY`