How to customize ejChart legend's position?
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
