In the SB Admin template, the Dashboard page contains a variety of attractive charts and graphs that you can use to display data in an interactive way to your users. We'll add the Dashboard page and its functionality that is included in the SB Admin template to our project by completing the following steps:
Create a new folder called
morris
inside thejs\plugins
folder.Add the following two files from the SB Admin source files to the folder:
raphael-2.1.0.min.js
morris.js
Add the
dashboard-demo.js
file to thejs
folder.Add the
morris-0.4.3.min.css
file to your project'scss
folder.Next, open the
_Layout.cshtml
file and add the following code to the<head>
element:@RenderSection("styles",false)
By adding the preceding line, we can inject additional CSS styles into the layout page per view.
Open the
Index.cshtml
file inside theViews\Home
folder.Add the following code to the top of the file, just below the layout declaration:
@section styles{ <link href...