asp.net - How to create a pyramid chart

Chart ChartType Pyramid
ChartTypePyramid.aspx

<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html>

<script runat="server">
    protected void Button1_Click(object sender, System.EventArgs e)
    {
        Chart1.Series["ExamResult"].ChartType = SeriesChartType.Pyramid;
        Label1.Text = "ChartType now Pyramid";
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>How to set change Chart ChartType Pyramid programmatically in asp.net</title>
    <style type="text/css">
        h2
        {
            color:SaddleBrown;
            font-style:italic;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2>Chart example and tutorial: How to set change<br />Chart ChartType Pyramid programmatically in asp.net</h2>
        <hr width="550" align="left" color="SaddleBrown" />
        <br />
        <asp:Label 
            ID="Label1"
            runat="server"
            Font-Size="Large"
            Font-Names="Comic Sans MS"
            BackColor="OliveDrab"
            ForeColor="Snow"
            Width="500"
            >
        </asp:Label>
        <br />
        <asp:Chart 
            ID="Chart1" 
            runat="server" 
            BorderlineDashStyle="Solid"
            BorderlineWidth="2"
            BorderlineColor="Olive"
            Width="500"
            BackColor="DarkGreen"
            Palette="Bright"
            >
            <Legends>
                <asp:Legend Docking="Top">
                </asp:Legend>
            </Legends>
            <Series>
                <asp:Series 
                    Name="ExamResult" 
                    YValueType="Int32" 
                    ChartArea="ChartArea1"
                    >
                    <Points>
                        <asp:DataPoint AxisLabel="Sagor" YValues="96" />
                        <asp:DataPoint AxisLabel="Boni" YValues="38" />
                        <asp:DataPoint AxisLabel="Moli" YValues="66" />
                        <asp:DataPoint AxisLabel="Farhana" YValues="74" />
                        <asp:DataPoint AxisLabel="Soni" YValues="27" />
                    </Points>
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea 
                    Name="ChartArea1" 
                    BackColor="Snow" 
                    BorderDashStyle="Dot"
                    BorderColor="ForestGreen"
                    BorderWidth="2"
                    >
                    <Area3DStyle Enable3D="true" />
                    <AxisX LineColor="LawnGreen"></AxisX>
                    <AxisY LineColor="MediumSeaGreen"></AxisY>
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <br />
        <asp:Button 
            ID="Button1"
            runat="server"
            Text="Set Chart ChartType Pyramid"
            Font-Bold="true"
            OnClick="Button1_Click"
            ForeColor="IndianRed"
            Height="45"
            />
    </div>
    </form>
</body>
</html>
More asp.net chart examples