I am using AmCharts4 and I want to add the title of the graph which is in an external container with a unique ID to the exported file (image, document, print,...)
This is how I add the title to the container:
document.getElementById("uniqID").innerHTML = o;
And here is the container:
<div class="col-xs-12 col-sm-12 col-md-8 col-lg-8 text-center">
<div id="122341">
<a id="uniqID"></a>
</div>
</div>
For the end result (exported file) I would like for the title to be on top of the document, above the graph. Please help.
AmCharts does not support adding external HTML into your export. Your title needs to be part of the chart object itself in order for it to get included in the export, e.g.
var title = chart.titles.create();
title.text = "My chart title";