asp.net - How to create a spline chart

Chart ChartType Spline
ChartTypeSpline.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.Spline;
        Label1.Text = "ChartType now Spline";
        Label1.BackColor = System.Drawing.Color.Crimson;
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>How to set change Chart ChartType Spline programmatically in asp.net</title>
    <style type="text/css">
        h2
        {
            color:DarkBlue;
            font-style:italic;
            }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <h2>Chart example and tutorial: How to set change<br />Chart ChartType Spline programmatically in asp.net</h2>
        <hr width="500" align="left" color="CornflowerBlue" />
        <br />
        <asp:Label 
            ID="Label1"
            runat="server"
            Font-Size="Large"
            Font-Names="Comic Sans MS"
            Width="525"
            ForeColor="White"
            >
        </asp:Label>
        <br />
        <asp:Chart 
            ID="Chart1" 
            runat="server" 
            BorderlineDashStyle="Solid"
            BorderlineWidth="2"
            BorderlineColor="Wheat"
            Width="525"
            BackColor="Olive"
            >
            <Series>
                <asp:Series 
                    Name="ExamResult" 
                    YValueType="Int32" 
                    ChartArea="ChartArea1"
                    Color="OliveDrab"
                    >
                    <Points>
                        <asp:DataPoint AxisLabel="Mouli" YValues="96" />
                        <asp:DataPoint AxisLabel="Laltu" YValues="38" />
                        <asp:DataPoint AxisLabel="Boruna" YValues="77" />
                        <asp:DataPoint AxisLabel="Koni" YValues="74" />
                        <asp:DataPoint AxisLabel="Sana" YValues="26" />
                    </Points>
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea 
                    Name="ChartArea1" 
                    BackColor="Snow" 
                    BorderDashStyle="Solid"
                    BorderColor="PaleTurquoise"
                    BorderWidth="2"
                    >
                    <Area3DStyle Enable3D="true" LightStyle="Simplistic" />
                    <AxisX LineColor="Olive"></AxisX>
                    <AxisY LineColor="Olive"></AxisY>
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <br />
        <asp:Button 
            ID="Button1"
            runat="server"
            Text="Set Chart ChartType Spline"
            Font-Bold="true"
            OnClick="Button1_Click"
            Font-Names="Comic Sans MS"
            ForeColor="Crimson"
            Height="45"
            />
    </div>
    </form>
</body>
</html>
More asp.net chart examples