Hello,
I'm having trouble styling my chart, specifically #1 and #2 which you can see in the image located here:
#1. how do I remove these borders?
#2. How do I remove this gap where the title is?
below is snippets of my code behind and ASPX designer code:
//create chart type Pie |
ChartSeries activityChartSeries = new ChartSeries(); |
activityChartSeries.Type = ChartSeriesType.Pie; |
//styles |
activityChartSeries.Appearance.Border.Visible = false; |
activityChartSeries.Appearance.LegendDisplayMode = ChartSeriesLegendDisplayMode.ItemLabels; |
activityChartSeries.DefaultLabelValue = "#%{P2}"; |
//data source |
RadChart2.DataSource = activityStats; |
//add series |
RadChart2.Series.Add(activityChartSeries); |
RadChart2.Series[0].DataYColumn = "Value"; |
//data bind |
RadChart2.ItemDataBound += new EventHandler<ChartItemDataBoundEventArgs>(RadChart2_ItemDataBound); |
RadChart2.DataBind(); |
<telerik:RadChart ID="RadChart2" BorderWidth="0" ChartTitle-Appearance-Border-Visible="false" ChartTitle-TextBlock-Visible="false" Legend-Appearance-Border-Visible="false" Width="500" Height="375" OnBeforeLayout="RadChart2_BeforeLayout" |
OnItemDataBound="RadChart2_ItemDataBound" runat="server" DefaultType="Pie" Skin="Web20"> |
</telerik:RadChart> |