RadScatterSparkline, how to programatically change the size of the points

2 posts, 0 answers
  1. Javier
    Javier avatar
    2 posts
    Member since:
    Jul 2010

    Posted 29 Apr 2016 Link to this post

    Hi,

    I'm using a RadScatterSparkline object inside a RadTimeBar. It works perfectly but I would like to make the points bigger because some times they are difficult to see (I'm using the RadScatterSparkline in combination with a RadLinearSparline).

    Since I'm adding the RadScatterSparkline dynamically I would like to change the size of the points programmatically.

    I've tried setting the Height and Width properties but it did not work.

    Do you know if this is possible at all? If so, any idea on how to do it?

     

    Many thanks!

     

    Regards.

  2. Peshito
    Admin
    Peshito avatar
    505 posts

    Posted 03 May 2016 Link to this post

    Hi,

    In order to meet this requirement you could re-template the default ScatterItem as shown below for instance:
    <Style TargetType="telerik:ScatterItem">
           <Setter Property="Template">
               <Setter.Value>
                   <ControlTemplate TargetType="telerik:ScatterItem">
                       <Ellipse Width="10" Height="10" Fill="Blue" />
                   </ControlTemplate>
               </Setter.Value>
           </Setter>
       </Style>
    Hope this helps.

    Regards,
    Peshito
    Telerik
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top