RadChart PieChart - Alignment

Thread is closed for posting
2 posts, 0 answers
  1. Thaya
    Thaya avatar
    9 posts
    Member since:
    Sep 2008

    Posted 05 Mar 2009 Link to this post


    I have a question!
    How can I align a Pie Chart to left?
    Using blow source code, but doent help!
    chart.Appearance.Position.AlignedPosition = AlignedPositions.Left;
    (Tryed right, top, bottom, etc. but pie chart doent move)
    Pie chart always display at the center!

    Pls help me soon!

  2. Velin
    Velin avatar
    391 posts

    Posted 07 Mar 2009 Link to this post

    Hello Thaya,

    Here are two options you should try.

    1. You could move the entire plot area and the ChartSeries inside to the left by setting the Margins.Right  property of the PlotArea to a given value. Here is how you can do this by code:
      chart.PlotArea.Appearance.Dimensions.Margins.Right = Telerik.Charting.Styles.Unit.Pixel(100); 
    2. You could move the ChartSeries position to the left leaving the PlotArea position intact. Following is a sample code:
      series.Appearance.CenterXOffset = -100; 

    Hope this will help.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top