Legend

9 Mar 20181 minute to read

Legend visibility

The legend shows the value range differences and color occurrence in the respective leaf node while hovering it with the cursor.

NOTE

By default, the legend is visible in the pivot tree map.

You can disable the legend by setting the showLegend property to false. The following code example shows how to disable the legend:

<div class="e-control">
	
	{{ej-pivottreemap id="PivotTreeMap" e-renderSuccess=model.renderSuccess}}
	
	</div>
export default Ember.Route.extend({
        model() {
            return {
            renderSuccess: function(args){
                     var treemapTarget = $('#PivotTreeMapTreeMapContainer').data('ejTreeMap');
                     treemapTarget.model.showLegend = false;
                     treemapTarget.refresh();
                }
           }
        }
    });