This section explains you the steps required to populate the Sparkline with data. This section covers only the minimal features that you need to know to get started with the Sparkline.
Installation and Deployment
It describes you on how to configure the Syncfusion dependencies in your ASP.NET application to create a Sparkline.
Referencing Syncfusion Assemblies
The following assemblies need to be referenced in your application for using Essential Sparkline ASP
Follow the steps given below to deploy the application in the development server by referencing the assembly in GAC.
- Web.config file should be configured according to the referenced assemblies.
- To deploy your application, you have to ensure that the above referenced assemblies (in your web.config files) are present in the GAC.
And, add Syncfusion namespace in the Web.config file.
If you are referring Syncfusion dll’s manually from bin folder to create ASP Sparkline, then remove Culture, Version and PublicKeyToken attributes used in all files.
Adding script reference
<!-- jquery script --> <script src="http://cdn.syncfusion.com/html/assets/external/jquery-1.10.2.min.html"></script> <!-- Essential html UI widget --> <script src="http://cdn.syncfusion.com/188.8.131.52/html/web/ej.web.all.min.html"></script>
Add the following code in the default.aspx file to create the Sparkline control in View page.
<ej:Sparkline ClientIDMode="Static" ID="Container" runat="server"> </ej:Sparkline>
Now, the Sparkline is rendered with some auto-generated random values and with default Line type Sparkline.