Package org.zkoss.zul

Interface ChartModel

All Known Subinterfaces:
CategoryModel, HiLoModel, PieModel, SingleValueCategoryModel, XYModel, XYZModel
All Known Implementing Classes:
AbstractChartModel, DialModel, GanttModel, SimpleCategoryModel, SimpleHiLoModel, SimplePieModel, SimpleSingleValueCategoryModel, SimpleXYModel, SimpleXYZModel, WaferMapModel

public interface ChartModel
Chart Model is used to hold the data model for the chart.
  • PieModel: one series of data objects. Each data object contains the category name and numeric value of a pie.
  • CategoryModel: n series of data objects. Each data object contains the category name and associated numeric value .
  • XYModel: n series of data objects. Each data object contains an (x,y) pair.
  • XYZModel: n series of data objects. Each data object contains an (x,y,z) pair; since 3.5.0
This interface defines the data model for components like Chart use to get the value of data.
Author:
henrichen
See Also:
  • Method Details

    • addChartDataListener

      void addChartDataListener(ChartDataListener l)
      Adds a listener to the chart that's notified each time a change to the data model occurs.
    • removeChartDataListener

      void removeChartDataListener(ChartDataListener l)
      Removes a listener from the chart that's notified each time a change to the data model occurs.