Hi,
We are using Telerik chart in our Project with DNN Framework.
We would like to use the skins provided by telerik in our chart and also to override the bar colors of the existing skin. But we are not able to overrite the default bar colors provided by the telerik in the skin.
Eg. Chart with skin color "Light Green". Bars are having the same color.
we are setting the bar color of the chart programatically like below using a fucntion and this function is called after databinding and setting the chart properties programatically
But we are hopeless. Bar color remains unchanged. Is there a way to override the bar color of the chart after setting desired skin.
We are using Telerik chart in our Project with DNN Framework.
We would like to use the skins provided by telerik in our chart and also to override the bar colors of the existing skin. But we are not able to overrite the default bar colors provided by the telerik in the skin.
Eg. Chart with skin color "Light Green". Bars are having the same color.
we are setting the bar color of the chart programatically like below using a fucntion and this function is called after databinding and setting the chart properties programatically
Private
Sub SetColourRange()
For Each item As Telerik.Charting.ChartSeriesItem In Me.RadChart1.Series.Item(0).Items
If item.YValue <= 40 Then
item.Appearance.FillStyle.MainColor = Drawing.Color.Red
item.Appearance.FillStyle.SecondColor = Drawing.Color.Pink
ElseIf item.YValue <= 60 Then
item.Appearance.FillStyle.MainColor = Drawing.Color.Yellow
item.Appearance.FillStyle.SecondColor = Drawing.Color.Silver
ElseIf item.YValue > 60 Then
item.Appearance.FillStyle.MainColor = Drawing.Color.Green
item.Appearance.FillStyle.SecondColor = Drawing.Color.GreenYellow
End If
Next
End Sub
But we are hopeless. Bar color remains unchanged. Is there a way to override the bar color of the chart after setting desired skin.