Category / Section
How to customize the ASP.NET MVC Chart size?
1 min read
You can customize the width and height of the Chart by using Size property. You can also specify the chart dimensions in percentage. Refer to the Chart Dimensions for more information about different units to specify chart size. The following code example explains how to customize the width and height of the Chart.
CSHTML
@(Html.EJ().Chart("container").Load("load") .Size(size=> size.Width("500").Height("500")) )
The following screenshot displays the Chart in specified size.