Articles in this section
Category / Section

How to display multiple ASP.NET MVC charts in a page?

1 min read

Essential Chart supports to display multiple charts in same page. Based on the requirement, you can create multiple chart containers with different id and display charts in web page. Refer to the following code example.

CSHTML

@(Html.EJ().Chart("container")
            .Series(series =>
                series.Points(pt =>
                {
                    pt.X("Walmart").Y(13).Text("13%").Add();
                    pt.X("Apple").Y(25).Text("25%").Add();
                    pt.X("Best Buy").Y(12).Text("12%").Add();
                    pt.X("Target").Y(7).Text("7%").Add();
                    pt.X("Amazon").Y(10).Text("10%").IsEmpty(true).Add();
                    pt.X("Wenger").Y(13).Text("13%").Add();
                    pt.X("Others").Y(20).Text("20%").Add();
                })
 ))
@(Html.EJ().Chart("container1")
            .Series(series =>
                series.Points(pt =>
                {
                    pt.X("1980").Y(13).Add();
                    pt.X("1984").Y(15).Add();
                    pt.X("1988").Y(16).Add();
                    pt.X("1992").Y(17).Add();
                    pt.X("1996").Y(17).Add();
                    pt.X("2000").Y(18).Add();
                    pt.X("2004").Y(20).Add();
                    pt.X("2008").Y(22).Add();
                    pt.X("2012").Y(24).Add();
                })
 ))

 

Multiple charts in a page

 

Conclusion

I hope you enjoyed learning about how to round the decimal values in Chart axis.

You can refer to our ASP.NET MVC Chart feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our ASP.NET MVC Chart example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you!

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