Space between legend and plot area

Hi,

It is possible add bottom padding/margin to the legend so that there is space between legend and plot area?



1 Reply 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team September 28, 2021 03:31 PM UTC

Hi RWEM, 

Greetings from Syncfusion. 

We suggest you to specify translateY for legend element in chart loaded event. We have prepared sample based on your requirement. Please check with below snippet and sample. 

<ejs-chart id="container" loaded="onChartLoaded" title="Inflation - Consumer Price"> 
</ejs-chart> 
<script> 
    function onChartLoaded(args) { 
        var legendEle = document.getElementById("container_chart_legend_g"); 
        legendEle.style.transform = "translateY(-10px)"; 
    } 
</script> 


 


Kindly revert us if you have any concerns. 

Regards, 
Durga G 


Marked as answer
Loader.
Up arrow icon