PointMark Size ?

Thread is closed for posting
6 posts, 0 answers
  1. Pete
    Pete avatar
    31 posts
    Member since:
    May 2008

    Posted 29 May 2008 Link to this post

    Hi, no matter what I do to the Pointmark appearance it doesn't change the size of the point. I have used the following

    ChartSeries1.Appearance.PointMark.Dimensions.Height = 30;
    ChartSeries1.Appearance.PointMark.Dimensions.Width = 30;
    ChartSeries1.Appearance.PointMark.Visible =

    true;

    // Range High

    ChartSeries2.Appearance.PointMark.Dimensions.Height=5;
    ChartSeries2.Appearance.PointMark.Dimensions.Width = 5;
    ChartSeries2.Appearance.PointMark.Visible =

    true;

    Yet both of the points are exactly the same size, is there another way of doing this ?

  2. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 30 May 2008 Link to this post

    Hi Pete,

    In order to set custom width / height for the pointmark, you need to set the ChartSeries.Appearance.PointMark.Dimensions.AutoSize property to false.

    Hope this helps.


    Kind regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Pete
    Pete avatar
    31 posts
    Member since:
    May 2008

    Posted 30 May 2008 Link to this post

    Thanks Manuel, I did actually find that solution in one of the point examples but didn't get round to updating the thread, that's sorted the problem anyway so thanks again.
  4. Trong
    Trong avatar
    20 posts
    Member since:
    May 2008

    Posted 30 May 2008 Link to this post

        Hi,
    I think I've the same problem, I  use Line Chart and i want to all points ( X,Y from datasource) display another style (size, color,..)

    My code:
             valueSeries.Appearance.PointMark.Dimensions.Height = 300;
            valueSeries.Appearance.PointMark.Dimensions.Width = 300;
            valueSeries.Appearance.PointMark.Visible = true;
            valueSeries.Appearance.PointMark.Dimensions.AutoSize = false;

    But no thing change!
  5. Giuseppe
    Admin
    Giuseppe avatar
    2363 posts

    Posted 02 Jun 2008 Link to this post

    Hello Trong,

    You need to set an appropriate point mark color as well:


    valueSeries.Appearance.PointMark.FillStyle.MainColor = Color.Red; 
    valueSeries.Appearance.PointMark.FillStyle.SecondColor = Color.White; 


    Hope this helps.


    Kind regards,
    Manuel
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. Trong
    Trong avatar
    20 posts
    Member since:
    May 2008

    Posted 03 Jun 2008 Link to this post

    Thanks you very much!
Back to Top