How to use Chart PaletteCustomColors in asp.net

Chart PaletteCustomColors
UsingChartPaletteCustomColors.aspx

<%@ Page Language="C#" AutoEventWireup="true" %>
<%@ Import Namespace="System.Drawing" %>

<!DOCTYPE html>

<script runat="server">
    protected void Button1_Click(object sender, System.EventArgs e)
    {
        Chart1.Palette = ChartColorPalette.None;
        Chart1.PaletteCustomColors = new Color[] { Color.Orange, Color.DarkOrange, Color.OrangeRed, Color.Salmon, Color.DarkSalmon };
    }
</script>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>How to use Chart PaletteCustomColors 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 use<br /> Chart PaletteCustomColors in asp.net</h2>
        <hr width="450" align="left" color="CornFlowerBlue" />
        <br />
        <asp:Chart 
            ID="Chart1" 
            runat="server" 
            Palette="SeaGreen"
            >
            <Legends>
                <asp:Legend 
                    Name="ChartLegend" 
                    Docking="Top"
                    Alignment="Center"
                    >
                </asp:Legend>
            </Legends>
            <Series>
                <asp:Series 
                    Name="Salary" 
                    YValueType="Int32" 
                    ChartType="Pie" 
                    ChartArea="DefaultChartArea"
                    >
                    <Points>
                        <asp:DataPoint AxisLabel="Jenny" YValues="7400" />
                        <asp:DataPoint AxisLabel="Sonali" YValues="28695" />
                        <asp:DataPoint AxisLabel="Masuma" YValues="11250" />
                        <asp:DataPoint AxisLabel="Popy" YValues="9750" />
                        <asp:DataPoint AxisLabel="Jones" YValues="31500" />
                    </Points>
                </asp:Series>
            </Series>
            <ChartAreas>
                <asp:ChartArea 
                    Name="DefaultChartArea" 
                    Area3DStyle-Enable3D="true"
                    >
                </asp:ChartArea>
            </ChartAreas>
        </asp:Chart>
        <br />
        <asp:Button 
            ID="Button1"
            runat="server"
            Text="Set Chart Custom Palette"
            Font-Bold="true"
            OnClick="Button1_Click"
            ForeColor="DarkBlue"
            Height="45"
            />
    </div>
    </form>
</body>
</html>
More asp.net chart examples