radchart borders and labels

Thread is closed for posting
3 posts, 0 answers
  1. Dean
    Dean avatar
    2 posts
    Member since:
    Jan 2012

    Posted 16 Feb 2012 Link to this post

    How do you get rid of the border around a radchart?  I have a chart in a radgrid and I can't seem to get rid of either the black border or the labels attached to the pie slices.

  2. Dean
    Dean avatar
    2 posts
    Member since:
    Jan 2012

    Posted 16 Feb 2012 Link to this post

    Here is the code to load the chart:

    radChart.Skin =

     

    "WebBlue";

     

    radChart.PlotArea.XAxis.DataLabelsColumn =

     

    "";

     

    radChart.ChartTitle.TextBlock.Visible=

     

    false;

     

    radChart.PlotArea.YAxis.Appearance.TextAppearance.Visible =

     

    false;

     

    radChart.PlotArea.XAxis.Appearance.TextAppearance.Visible =

     

    false;

     

    radChart.DataSource = dt;

    radChart.Series[0].DataYColumn =

     

    "pct";

     

    radChart.Series[0].DataXColumn =

     

    "hours_avl";

     

    radChart.DataBind();

    radChart.Appearance.Border.Color = System.Drawing.

     

    Color.White;

     

    radChart.Legend.Visible =

     

    false;

     

     

     

    ChartSeriesItem item1 = radChart.Series[0].Items[0];

     

    item1.Name =

     

    "Pct Reported";

     

    item1.Appearance.FillStyle.MainColor =

     

    Color.Green;

     

    item1.Appearance.FillStyle.FillType =

     

    FillType.Solid;

     

     

     

    ChartSeriesItem item2 = radChart.Series[0].Items[1];

     

    item2.Name =

     

    "Pct Avl";

     

    item2.Appearance.FillStyle.MainColor =

     

    Color.Red;

     

    item2.Appearance.FillStyle.FillType =

     

    FillType.Solid;

     

    radChart.Visible =

     

    true;

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 20 Feb 2012 Link to this post

    Hello Dean,

    Here's how you can make the Border unvisible:

    RadChart1.Appearance.Border.Color = System.Drawing.Color.Transparent;

    Also please note that you may need to set the SkinsOverrideStyles property of the Chart to false in order for your custom settings to override those set by the Style. 

    All the best,
    Evgenia
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top