This is a migrated thread and some comments may be shown as answers.

RadScatterSparkline, how to programatically change the size of the points

1 Answer 25 Views
TimeBar
This is a migrated thread and some comments may be shown as answers.
Javier
Top achievements
Rank 1
Javier asked on 29 Apr 2016, 10:31 AM

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.

1 Answer, 1 is accepted

Sort by
0
Peshito
Telerik team
answered on 03 May 2016, 12:19 PM
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.
Tags
TimeBar
Asked by
Javier
Top achievements
Rank 1
Answers by
Peshito
Telerik team
Share this question
or