Articles in this section
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.

The Chart in specified size

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied