In order to configure a chart, in addition to assigning XML attributes, you can use a custom JSON described in the AmCharts documentation.
For example, we have a serialChart:
link:../../../../source/chart/custom_json_1.xml[role=include]
This chart has some data:
link:../../../../source/chart/custom_json_2.java[role=include]
And now we can change the chart’s configuration. As an example, let’s add a title:
link:../../../../source/chart/custom_json_3.java[role=include]
You can also set JSON configuration in the XML:
link:../../../../source/chart/custom_json_4.xml[role=include]