Hello,
I am using RadChart, and when i apply skin ( LightBlue ), i am try change legend color, and no change.
If i no use skin, its work. Else no work.
Anybody can help?
Partof HTML
<td colspan="2" align="center">
<telerik:RadChart ID="chtDesempenhoProcesso1" runat="server" Width="970px" Height="420px" OnDataBound="chtDesempenhoProcesso1_DataBound" Skin="LightBlue" AutoTextWrap="true">
<PlotArea>
<EmptySeriesMessage Visible="True">
<Appearance Visible="True">
</Appearance>
</EmptySeriesMessage>
<Appearance>
<Border Width="0" Visible="true" />
</Appearance>
<XAxis DataLabelsColumn="Area">
</XAxis>
<YAxis MinValue="0" MaxValue="100" AutoScale="false" Step="10" Appearance-MinorGridLines-Visible="false" Appearance-MajorGridLines-Visible="false">
</YAxis>
</PlotArea>
<ChartTitle>
<TextBlock Text="Dimensão">
</TextBlock>
</ChartTitle>
</telerik:RadChart>
</td>
aspx.cs
protected void chtDesempenhoProcesso1_DataBound(object sender, EventArgs e)
{
chtDesempenhoProcesso1.PlotArea.XAxis[0].TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font(new System.Drawing.Font("Arial", 10), System.Drawing.FontStyle.Bold);
if (chtDesempenhoProcesso1.Chart.PlotArea.XAxis.Items.Count > 0)
{
for (int i = 0; i < chtDesempenhoProcesso1.Chart.PlotArea.XAxis.Items.Count; i++)
{
ChartSeriesItem item = chtDesempenhoProcesso1.Series[5].Items[i];
item.Appearance.FillStyle.MainColor = System.Drawing.Color.DarkGray;
item.Appearance.FillStyle.SecondColor = System.Drawing.Color.Gray;
item.Appearance.Shadow.Distance = 155;
item.Appearance.Border.Color = System.Drawing.Color.Gray;
}
// This code no change legend color
chtDesempenhoProcesso1.Series[5].Appearance.FillStyle.MainColor = System.Drawing.Color.DarkGray;
}
}
thx..
I am using RadChart, and when i apply skin ( LightBlue ), i am try change legend color, and no change.
If i no use skin, its work. Else no work.
Anybody can help?
Partof HTML
<td colspan="2" align="center">
<telerik:RadChart ID="chtDesempenhoProcesso1" runat="server" Width="970px" Height="420px" OnDataBound="chtDesempenhoProcesso1_DataBound" Skin="LightBlue" AutoTextWrap="true">
<PlotArea>
<EmptySeriesMessage Visible="True">
<Appearance Visible="True">
</Appearance>
</EmptySeriesMessage>
<Appearance>
<Border Width="0" Visible="true" />
</Appearance>
<XAxis DataLabelsColumn="Area">
</XAxis>
<YAxis MinValue="0" MaxValue="100" AutoScale="false" Step="10" Appearance-MinorGridLines-Visible="false" Appearance-MajorGridLines-Visible="false">
</YAxis>
</PlotArea>
<ChartTitle>
<TextBlock Text="Dimensão">
</TextBlock>
</ChartTitle>
</telerik:RadChart>
</td>
aspx.cs
protected void chtDesempenhoProcesso1_DataBound(object sender, EventArgs e)
{
chtDesempenhoProcesso1.PlotArea.XAxis[0].TextBlock.Appearance.TextProperties.Font = new System.Drawing.Font(new System.Drawing.Font("Arial", 10), System.Drawing.FontStyle.Bold);
if (chtDesempenhoProcesso1.Chart.PlotArea.XAxis.Items.Count > 0)
{
for (int i = 0; i < chtDesempenhoProcesso1.Chart.PlotArea.XAxis.Items.Count; i++)
{
ChartSeriesItem item = chtDesempenhoProcesso1.Series[5].Items[i];
item.Appearance.FillStyle.MainColor = System.Drawing.Color.DarkGray;
item.Appearance.FillStyle.SecondColor = System.Drawing.Color.Gray;
item.Appearance.Shadow.Distance = 155;
item.Appearance.Border.Color = System.Drawing.Color.Gray;
}
// This code no change legend color
chtDesempenhoProcesso1.Series[5].Appearance.FillStyle.MainColor = System.Drawing.Color.DarkGray;
}
}
thx..