Hi,
I'm trying to change the color of the border of the sectors in this pie chart from the light-blue it seems to be defaulting to.
How do I access the property to make the change?
                                I'm trying to change the color of the border of the sectors in this pie chart from the light-blue it seems to be defaulting to.
How do I access the property to make the change?
3 Answers, 1 is accepted
0
                                
                                                    Princy
                                                    
                                            
    Top achievements
    
            
                 Rank 2
                Rank 2
            
    
                                                
                                                answered on 28 Aug 2012, 05:59 AM
                                            
                                        Hi Adrian,
Try setting Appearance-Border-Color property of ChartSeries to achieve your scenario.
ASPX:
Hope this help.
Regards,
Princy.
                                        Try setting Appearance-Border-Color property of ChartSeries to achieve your scenario.
ASPX:
<telerik:RadChart ID="RadChart1" runat="server" SkinsOverrideStyles="true" Width="600px">    ..........  <Series>    <telerik:ChartSeries Name="Series 1" Type="Pie" Appearance-Border-Color="Red">       <Items>         ...........       </Items>    </telerik:ChartSeries>  </Series></telerik:RadChart>Hope this help.
Regards,
Princy.
0
                                
                                                    Adrian
                                                    
                                            
    Top achievements
    
            
                 Rank 1
                Rank 1
            
    
                                                
                                                answered on 28 Aug 2012, 01:48 PM
                                            
                                        Thanks it worked. Just as a follow up, I also need to change the fill type on the pie sectors which are all defaulted to gradient, but I need them to be solid.  The code I'm trying is this:
Protected Sub ConfigureChart(ByVal dt As DataTable, ByVal thechart As Telerik.Web.UI.RadChart, ByVal x_colname As String, ByVal y_colname As String)
Dim chartseries As New ChartSeries
chartseries.Type = ChartSeriesType.Pie
        
chartseries.Appearance.Border.Color = Drawing.Color.White
        
For Each item In chartseries.Items
item.Appearance.FillStyle.MainColor = Drawing.Color.Lime
item.Appearance.FillStyle.FillType = Styles.FillType.Solid
            
Next
                    
chartseries.DataLabelsColumn = x_colname
chartseries.DataYColumn = y_colname
chartseries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels
'chartseries.Appearance.ShowLabelConnectors = True
chartseries.Appearance.ShowLabels = False
                
thechart.Series.Add(chartseries)
        
thechart.Appearance.FillStyle.FillType = Styles.FillType.Solid
thechart.DataSource = dt
thechart.DataBind()
        
        
End Sub
                                        Protected Sub ConfigureChart(ByVal dt As DataTable, ByVal thechart As Telerik.Web.UI.RadChart, ByVal x_colname As String, ByVal y_colname As String)
Dim chartseries As New ChartSeries
chartseries.Type = ChartSeriesType.Pie
chartseries.Appearance.Border.Color = Drawing.Color.White
For Each item In chartseries.Items
item.Appearance.FillStyle.MainColor = Drawing.Color.Lime
item.Appearance.FillStyle.FillType = Styles.FillType.Solid
Next
chartseries.DataLabelsColumn = x_colname
chartseries.DataYColumn = y_colname
chartseries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels
'chartseries.Appearance.ShowLabelConnectors = True
chartseries.Appearance.ShowLabels = False
thechart.Series.Add(chartseries)
thechart.Appearance.FillStyle.FillType = Styles.FillType.Solid
thechart.DataSource = dt
thechart.DataBind()
End Sub
0
                                Hi Adrian,
Evgenia
the Telerik team
                                        You may need to use SkinsOverrideStyles=false, so that you can your own settings are getting applied (the default skin will not override them). If this is not of help to you, could you prepare a small project that we can use to inspect what's preventing the settings to be applied on our side?
Greetings,Evgenia
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.