3D Chart Inclination
ChartInclination.aspx
<%@ Page Language="C#" AutoEventWireup="true" %>
<%@Import Namespace="System.Web.UI.DataVisualization.Charting" %>
<!DOCTYPE html>
<script runat="server">
protected void Button1_Click(object sender, System.EventArgs e)
{
Chart1.ChartAreas[0].Area3DStyle.Inclination = 65;
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>How to set change 3D Chart Inclination 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 /> 3D Chart Inclination programmatically in asp.net</h2>
<hr width="525" align="left" color="LightBlue" />
<br />
<asp:Chart
ID="Chart1"
runat="server"
Width="525"
BackColor="Crimson"
BorderlineColor="DeepPink"
BorderlineDashStyle="Dot"
>
<Series>
<asp:Series
Name="AnnualSalary"
YValueType="Int32"
ChartArea="DefaultChartArea"
Color="Green"
ChartType="Column"
>
<Points>
<asp:DataPoint AxisLabel="Jones" YValues="37150" />
<asp:DataPoint AxisLabel="Mukto" YValues="22495" />
<asp:DataPoint AxisLabel="Sukorno" YValues="9650" />
<asp:DataPoint AxisLabel="Makeda" YValues="9650" />
<asp:DataPoint AxisLabel="Shimul" YValues="17450" />
</Points>
</asp:Series>
</Series>
<ChartAreas>
<asp:ChartArea
Name="DefaultChartArea"
BackColor="GhostWhite"
BorderDashStyle="Solid"
BorderWidth="2"
BorderColor="SaddleBrown"
>
<Area3DStyle Enable3D="true" LightStyle="Realistic" />
<AxisX>
<MajorGrid LineColor="YellowGreen" />
<LabelStyle ForeColor="Snow" />
</AxisX>
<AxisY>
<MajorGrid LineColor="YellowGreen" />
<LabelStyle ForeColor="Snow" />
</AxisY>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
<br />
<asp:Button
ID="Button1"
runat="server"
Text="Set Chart Inclination 65"
Font-Bold="true"
OnClick="Button1_Click"
ForeColor="DarkBlue"
Height="45"
/>
</div>
</form>
</body>
</html>

