Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi, does anyone know how could I create box plot using ASP.net, C# or JavaScript?
This is the codes that I found online:
XML
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>

However, this is not what I want as an output. The sample output I would like to code out looks something like this: http://www.originlab.com/forum/topic.asp?TOPIC_ID=20351[^]
Appreciate if anyone could help me on this, thank you very much!
Posted
Updated 22-Sep-15 22:47pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900