codebehind: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.DataVisualization.Charting; namespace WebApplication2 { public partial class _Default : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Chart1.ImageStorageMode = System.Web.UI.DataVisualization.Charting.ImageStorageMode.UseImageLocation; Chart1.Series["ExamResult"].ChartType = SeriesChartType.BoxPlot; } } } front-end: <asp:Chart ID="Chart1" runat="server" BorderlineDashStyle="DashDotDot" BorderlineWidth="1" BorderlineColor="Crimson" Palette="Chocolate" > <Series> <asp:Series Name="ExamResult" YValueType="Int32" ChartArea="ChartArea1" Color="Snow" > <Points> <asp:DataPoint AxisLabel="Sagor" YValues="82" /> <asp:DataPoint AxisLabel="Lakhi" YValues="95" /> <asp:DataPoint AxisLabel="Sohel" YValues="72" /> <asp:DataPoint AxisLabel="Munna" YValues="47" /> <asp:DataPoint AxisLabel="Sithi" YValues="42" /> </Points> </asp:Series> </Series> <ChartAreas> <asp:ChartArea Name="ChartArea1" BackColor="Crimson" Area3DStyle-Enable3D="true" > </asp:ChartArea> </ChartAreas> </asp:Chart>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)