Scatter Plot Point Size

8 posts, 1 answers
  1. James DAmour
    James DAmour avatar
    7 posts
    Member since:
    Mar 2010

    Posted 06 May 2010 Link to this post

    When I try to change the point size on a scatter plot, it doesn't increase in size, it's as if the container is fixed at a size and the point get clipped (so when I draw a circle point of point size 20, i see only a quarter of the circle appear on the graph).

    here is my code i'm using to adjust the size:

    DataSeries series = new DataSeries();
                ScatterSeriesDefinition l = new ScatterSeriesDefinition();
                l.Appearance.Fill = Brushes.DeepPink;
                l.Appearance.Stroke = Brushes.Black;
                l.PointSize = 20;
                series.Definition = l;

    Appreciate your thoughts,
    Nelson



  2. Nikolay
    Admin
    Nikolay avatar
    385 posts

    Posted 10 May 2010 Link to this post

    Hello James DAmour,

    Indeed, currently there is a problem with changing the size property of the scatter points - the only way to change the point size at the moment, would be by retemplating and updating the Width and Height properties. The issue has been logged and our developers are working on resolving it, so you can expect a fix available in one of the upcoming internal builds, released every Friday.

    We are sorry for the inconvenience caused.

    Regards,
    Nikolay
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for WPF is Visual Studio 2017 Ready
  4. James DAmour
    James DAmour avatar
    7 posts
    Member since:
    Mar 2010

    Posted 18 May 2010 Link to this post

    Thanks Nikolay,

    I'll keep my eye out for it.
  5. Michael DeMond
    Michael DeMond avatar
    6 posts
    Member since:
    May 2010

    Posted 18 May 2010 Link to this post

    test
  6. James DAmour
    James DAmour avatar
    7 posts
    Member since:
    Mar 2010

    Posted 04 Jun 2010 Link to this post

    I guess this was not included in the latest SP2 release.
  7. James DAmour
    James DAmour avatar
    7 posts
    Member since:
    Mar 2010

    Posted 04 Jun 2010 Link to this post

    Nikolay,

    could you describe to me how to retemplate the point and change its width & height? 

    Thank you,
    Nelson
  8. Answer
    Nikolay
    Admin
    Nikolay avatar
    385 posts

    Posted 07 Jun 2010 Link to this post

    Hello James DAmour,

    In order to edit the size of the PointMarks you need to create a style in the following manner :

       <Style x:Name="CustomStyle" TargetType="chart:PointMark">
    <Setter Property="Template">
      <Setter.Value>
       <ControlTemplate TargetType="chart:PointMark">
        <Canvas>
         <Path x:Name="PART_PointMarkPath"
              Canvas.Left="{TemplateBinding PointMarkCanvasLeft}"
             Canvas.Top="{TemplateBinding PointMarkCanvasTop}"
             Style="{TemplateBinding ShapeStyle}" 
             Width="10" 
             Height="10"
             Stretch="Fill">
        <Path.Data>
             <PathGeometry x:Name="PART_PointMarkPathGeometry" />
        </Path.Data>
          </Path>
        </Canvas>
      </ControlTemplate>
     </Setter.Value>
    </Setter>
    </Style>

    and in code behind :
    Style customStyle = this.Resources["CustomStyle"] as Style;
    RadChart1.DefaultSeriesDefinition.PointMarkItemStyle = customStyle;

    Hope this would be helpful for you.

    Kind regards,
    Nikolay
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  9. James DAmour
    James DAmour avatar
    7 posts
    Member since:
    Mar 2010

    Posted 08 Jun 2010 Link to this post

    Thanks Nikolay - that helps out a lot until the fix comes.

    Regards,
    Nelson
Back to Top
UI for WPF is Visual Studio 2017 Ready