asp:Chart - background color help
-
Hi, I created a simple graph that will display the Altitude of a unit, but I can not figure out how to change that ugly white background color to something else... Note, I find that almost every color is configurable except the white background behind the background behind the graph...
<asp:Chart ID="Chart1" runat="server" Height="270px" Width="898px" BackColor="#005375"
BorderColor="26, 59, 105" BorderDashStyle="Solid" Palette="Fire" BackSecondaryColor="Gainsboro"
BackGradientStyle="TopBottom" BorderWidth="2"
BackImageTransparentColor="#003366" BorderSkin-BackColor="#003366"
BorderSkin-BackImageTransparentColor="#003366"
BorderSkin-BackSecondaryColor="#003366" BorderSkin-PageColor="#003366"
BorderSkin-SkinStyle="None">
<Titles>
<asp:Title Font="Trebuchet MS, 14pt, style=Bold" Text="Trip altitude information"
Name="Title1" Alignment="TopCenter" ForeColor="200, 200, 200, 200">
</asp:Title>
</Titles>
<Legends>
<asp:Legend IsTextAutoFit="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold">
</asp:Legend>
</Legends>
<BorderSkin SkinStyle="Emboss"></BorderSkin>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Black"
BackColor="#56818E" ShadowColor="Transparent" BackGradientStyle="LeftRight">
<Area3DStyle Rotation="0" Perspective="0" Enable3D="True" Inclination="10" IsRightAngleAxes="False"
WallWidth="0" IsClustered="False" />
<AxisY LineColor="64, 64, 64, 64" Title="Altitude [m]">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</AxisY>
<AxisX LineColor="64, 64, 64, 64" Title="Time">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</AxisX>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
Any help would be much apprecitiated...
-
Hi, I created a simple graph that will display the Altitude of a unit, but I can not figure out how to change that ugly white background color to something else... Note, I find that almost every color is configurable except the white background behind the background behind the graph...
<asp:Chart ID="Chart1" runat="server" Height="270px" Width="898px" BackColor="#005375"
BorderColor="26, 59, 105" BorderDashStyle="Solid" Palette="Fire" BackSecondaryColor="Gainsboro"
BackGradientStyle="TopBottom" BorderWidth="2"
BackImageTransparentColor="#003366" BorderSkin-BackColor="#003366"
BorderSkin-BackImageTransparentColor="#003366"
BorderSkin-BackSecondaryColor="#003366" BorderSkin-PageColor="#003366"
BorderSkin-SkinStyle="None">
<Titles>
<asp:Title Font="Trebuchet MS, 14pt, style=Bold" Text="Trip altitude information"
Name="Title1" Alignment="TopCenter" ForeColor="200, 200, 200, 200">
</asp:Title>
</Titles>
<Legends>
<asp:Legend IsTextAutoFit="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold">
</asp:Legend>
</Legends>
<BorderSkin SkinStyle="Emboss"></BorderSkin>
<ChartAreas>
<asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Black"
BackColor="#56818E" ShadowColor="Transparent" BackGradientStyle="LeftRight">
<Area3DStyle Rotation="0" Perspective="0" Enable3D="True" Inclination="10" IsRightAngleAxes="False"
WallWidth="0" IsClustered="False" />
<AxisY LineColor="64, 64, 64, 64" Title="Altitude [m]">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</AxisY>
<AxisX LineColor="64, 64, 64, 64" Title="Time">
<LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />
<MajorGrid LineColor="64, 64, 64, 64" />
</AxisX>
</asp:ChartArea>
</ChartAreas>
</asp:Chart>
Any help would be much apprecitiated...
Are you using .NET 3.5 SP1 and Microsoft Chart Control ?
cheers, Abhijit My Recent Article : Beginner's Guide To View State
-
Are you using .NET 3.5 SP1 and Microsoft Chart Control ?
cheers, Abhijit My Recent Article : Beginner's Guide To View State
yes.... I "fixed" it by setting the border like this...
Tnx ^_^