Articles in this section
Category / Section

How to set the Legend title?

3 mins read

This article explains about how to set the Legend title in jQuery Maps.

To set the Legend title, follow the given steps:

Step 1:

Create a map sample and include the necessary script files.

Step 2:

The Legends are used to provide valuable information for interpreting the map displayed. The Legend title can be used to provide titles for Legends and it can be enabled by using the API title in the legendSettings.



This API “title” is specific to Legend mode “interactive” and does not apply to default Legend.



legendSettings: {
         title: "Population"



<script type="text/javascript">
        jQuery(function ($) {           
               layers: [
              legendSettings: {
                     .  .  .
                          title: "Population"
                        .  .  .                 


The following screenshot shows the Legend title:

Maps with legend title


Sample Links:!documents/mapelements.htm!/azure/map/heatmap



I hope you enjoyed learning about how to set the Legend title.

You can refer to our  jQuery Map’s feature tour page to know about its other groundbreaking feature representations. You can also explore our  jQuery Maps documentation to understand how to present and manipulate data.

For current customers, you can check out our jQuery components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our jQuery Maps and other  jQuery  components.

If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!


Did you find this information helpful?
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment