Articles in this section
Category / Section

How to achieve DrillDown in JavaScript ejTreeMap?

4 mins read

The following steps help you meet the requirement in JavaScript ejTreeMap

Step 1:

Create a TreeMap sample and include the necessary script files.

Step 2:

Set enableDrillDown property as True in order to drilldown the TreeMap elements.

HTML

 enableDrillDown: true

You can customize the drilled header color using the drillDownHeaderColor property.

HTML

  drillDownHeaderColor: "#199DAF"

You can refer to the following online documentation link for more details about DrillDown.

https://help.syncfusion.com/ug/js/documents/drilldownsupport.htm

Sample Location for TreeMap-DrillDown:

https://ej2.syncfusion.com/home/javascript.html#!/azure/treemap/drilldown

HTML

<script type="text/javascript">
        jQuery(function ($) {
            $("#treemap").ejTreeMap({                   
                   . . .
                enableDrillDown: true,
    drillDownHeaderColor: "#199DAF",
                       . . .
  levels: [
                       . . .
                ]
            });
            });
    </script>

 

Screenshot:

Treemap with drilldown view

Figure 1: Before DrillDown

 

TreeMap after the drill down enabled

Figure 2: After DrillDown

 

Conclusion

I hope you enjoyed learning about how to place data labels in JavaScript Chart

You can refer to our JavaScript ejTreeMap feature tour page to know about its other groundbreaking feature representations and documentation, to understand how to create and manipulate data.

For current customers, you can check out our 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 other controls.

If you have any queries or require clarifications, please let us know in the comments section 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?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied