The XYChart
component allows you to create XY/bubble/scatter charts. The charts support multiple axes with simple or logarithmic scales.
XML name of the component: chart:xyChart
.
- Data binding:
-
You can assign a datasource of a
CollectionDatasource
type to the chart and then define thexField
andyFields
attributes for the nestedgraph
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.