To enable the interactive Legend follow the given steps:
Create a map sample and include the necessary script files.
The Legends can be made interactive with an arrow mark indicating the exact range color in the Legend when the mouse hovers over the corresponding shapes. In order to render interactive Legends, set the Legend mode to interactive in the legendSettings.
The following screenshot shows the interactive Legend:
This page will automatically be redirected to the sign-in page in 10 seconds.