How to set the Legend title?
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.
JS
legendSettings: { showLegend:true, title: "Population" }
JS
<script type="text/javascript"> jQuery(function ($) { $("#maps").ejMap({ layers: [ legendSettings: { . . . showLegend:true, title: "Population" . . . }, ], }); }); </script>
The following screenshot shows the Legend title:
Sample Links:
https://help.syncfusion.com/ug/js/default.htm#!documents/mapelements.htm
https://js.syncfusion.com/demos/web/#!/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 forums, Direct-Trac, or feedback portal. We are always happy to assist you!