I was wondering if there is a way to add images to CategoryAxes in amchart.
I have a demo which can include images in every article, but they are always near the graph and / or offset in them, but I need to keep these pictures at the top of the chart.
I tried to provide a and src = "" & gt;
, but it only shows the text, showing all the tags.
I have read these ways and the options can be in the category, but I did not find anything that says that it can display the images, so it is possible to add them?
Add:
// Doesn t "category" option works as "dataprider": ["category": "
OK, support from amCharts made me this question possible Here I leave JSFDial for those who need it in the future:
Demo by AMCharts
... img .setAttributeNS ('http: //www.w3.org/1999/xlink', 'href', 'http://www.amcharts.com//lib/3/images/1.gif');
In this line, because it is inside the loop, you can create a set of images in an array, then with a counter you can increase it, so that you can put the image you need In each category axis
No comments:
Post a Comment