Articles in this section
Category / Section

How to customize ejChart legend's position?

1 min read

EjChart supports customizing the legend position in the chart using legend properties “Position” and “Alignment”.

  • Position- To move the legend to the top, bottom, left or right side of the chart.
  • Alignment- To align the legend in the center, far or near the chart.

MVC

@(Html.EJ().Chart("container")
.Legend(lg => {     
            lg.Alignment(Syncfusion.JavaScript.DataVisualization.TextAlignment.Near)
            .Position(LegendPosition.Right); 
        })
)

Screenshot

Customizing the Chart legend's position

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