Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 1.25 KB

File metadata and controls

43 lines (33 loc) · 1.25 KB

XYChart

The XYChart component allows you to create XY/bubble/scatter charts. The charts support multiple axes with simple or logarithmic scales.

xy chart
Figure 1. XYChart

XML name of the component: chart:xyChart.

Data binding:

You can assign a datasource of a CollectionDatasource type to the chart and then define the xField and yFields attributes for the nested graph elements:

link:../../../../source/chart/xy_chart.xml[role=include]
XYChart event listeners
  • AxisZoomListener - chart axis scaling.

  • ChartClickListener - click on the canvas.

  • CursorPeriodSelectListener - selection of the display period with a cursor.

  • CursorZoomListener - scaling of the chart area with a cursor.

  • GraphClickListener - click on a graph.

  • GraphItemClickListener - click on a graph item.

  • GraphItemRightClickListener - right click on a graph item.

For more details, see AmCharts documentation.