Reputation: 190
I tried to Find Solution in Amchart for Shown Last Category(Date) in Title I'm Using Dataloader and load json file in amcharts shown last Category (Date) as title in amcharts
Upvotes: 0
Views: 30
Reputation: 16012
You can use the complete
callback in the dataloader to make modifications to your chart object at the end of the load. For example:
dataLoader: {
url: "/path/to/endpoint",
complete: function(chart) {
chart.addTitle(
"Data from " +
chart.dataProvider[0][chart.categoryField] +
" to " +
chart.dataProvider[chart.dataProvider.length - 1][
chart.categoryField
],
16,
"#444444",
1,
true
);
}
},
Upvotes: 1