Skip to content

Miscellaneous

Philipp Jahoda edited this page Mar 11, 2015 · 9 revisions

Clearing the chart

  • clear(): Clears the chart of all data (by setting the data object to null). Calls invalidate() to refresh the chart.
  • clearValues(): Clears the chart of all DataSet objects and thereby all Entries. Does not remove the provided x-values from the chart. Calls invalidate() to refresh the chart.

Some more methods (of the Chart class)

  • saveToGallery(String title): Saves the current chart state as an image to the gallery.
  • saveToPath(String title, String pathOnSD): Saves the current chart state as an image to the specified path.
  • getChartBitmap(): Returns the Bitmap object that represents the chart, this Bitmap always contains the latest drawing state of the chart.
  • setHardwareAccelerationEnabled(boolean enabled): Allows to enable/disable hardware acceleration for the chart, only API level 11+.

The documentation has moved.

Clone this wiki locally