Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.25 KB

pie_chart.adoc

File metadata and controls

46 lines (36 loc) · 1.25 KB

PieChart

The PieChart component allows you to create pie/donut charts.

pie chart
Figure 1. PieChart

XML name of the component: chart:pieChart.

Data binding:
  1. Using a datasource.

    You can assign a datasource of a CollectionDatasource type to the chart and then define the titleField and valueField attributes for the pieChart element:

    link:../../../../source/chart/pie_chart.xml[role=include]
  2. Using the chart:data element.

PieChart event listeners:
  • ChartClickListener - click on the canvas.

  • ChartRightClickListener - right click on the canvas.

  • SliceClickListener - click on a slice in a pie chart.

  • SlicePullInListener - shift of a slice of a pie chart into the chart.

  • SlicePullOutListener - shift of a slice of a pie chart out of the chart.

  • SliceRightClickListener - right-click on a slice in a pie chart.

For more details, see AmCharts documentation.