Search code examples
javascriptreactjsamchartsamcharts4

How to add a title to an amcharts map?


I currently have a map that uses the amcharts library. Everything looks great right now, but I want to add a title to the top of the map (i.e. the top left corner). I tried scouring the docs, but couldn't find any help for maps (not charts). Any tips/suggestions are appreciated!


Solution

  • Try to use this.

    let title = chart.titles.create();
    title.text = "Speed";
    title.fontSize = 25;
    title.marginBottom = 30;
    

    you can see more about it here Titles amCharts