In this article, we'll deal with a common data visualization task, which is to create a sales dashboard (dashboard). Sales dashboards are often used in business demonstrations to showcase key performance metrics for a business process or business goal, and the key to completing such a presentation is not only a good visual presentation of the data, but also a pleasing look. To do this, I use the related Chart Component, which provides all the required functionality. This example will use the chart components in Shieldui, which can be downloaded from the site free of charge.
After the completion of the display, see the following figure:
This example will be explained using ASP.net and MVC in two different ways.
Using code
Asp. NET version
I start by building a Visual Studio Web project that contains a separate. aspx file that contains the associated controls. The second step is to add the diagram component's. dll file to the current project:
After you add the. dll file that contains the component to the project, we also need to reference it in the project. Can be done directly in the. aspx page, see the following example:
<%@ Register assembly= "Shield.Web.UI"
namespace= "Shield.Web.UI" tagprefix= "Shield"
%>