Chart Type Funnel
ChartTypeFunnel.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.Funnel;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>How to set change Chart ChartType Funnel 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 Funnel programmatically in asp.net</h2>
<hr width="525" align="left" color="Gray" />
<br />
<asp:Chart
ID="Chart1"
runat="server"
BorderlineDashStyle="Solid"
BorderlineWidth="2"
BorderlineColor="Crimson"
Palette="Chocolate"
>
<Legends>
<asp:Legend BackColor="RosyBrown" Docking="Top"></asp:Legend>
</Legends>
<Series>
<asp:Series
Name="ExamResult"
YValueType="Int32"
ChartArea="ChartArea1"
>
<Points>
<asp:DataPoint AxisLabel="Sagor" YValues="96" />
<asp:DataPoint AxisLabel="Boishakhi" YValues="85" />
<asp:DataPoint AxisLabel="Pori" YValues="74" />
<asp:DataPoint AxisLabel="Batasi" YValues="49" />
<asp:DataPoint AxisLabel="Mohua" YValues="32" />
</Points>
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea
Name="ChartArea1"
BackColor="Snow"
BorderDashStyle="Dot"
BorderColor="SaddleBrown"
>
<Area3DStyle Enable3D="true" />
<AxisX LineColor="ForestGreen"></AxisX>
<AxisY LineColor="Green"></AxisY>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
<br />
<asp:Button
ID="Button1"
runat="server"
Text="Set Chart ChartType Funnel"
Font-Bold="true"
OnClick="Button1_Click"
ForeColor="DodgerBlue"
Height="45"
/>
</div>
</form>
</body>
</html>

