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

Line Series Thickness

15 Answers 210 Views
Chart
This is a migrated thread and some comments may be shown as answers.
Alexy
Top achievements
Rank 1
Alexy asked on 22 May 2009, 02:47 PM
Hey,

Is it possible to change the thickness of the Line or Spline Series?

15 Answers, 1 is accepted

Sort by
0
Vladimir Milev
Telerik team
answered on 25 May 2009, 03:57 PM
Hello Alexy,

Unfortunately the only way to change the thickness is to retemplate the control. You can see how to do this here: http://demos.telerik.com/silverlight/#Chart/MVVM

Kind regards,
Vladimir Milev
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
0
Alexy
Top achievements
Rank 1
answered on 29 May 2009, 05:05 PM
Thanks Vladimir,

I works good for bars, but I cannot make the style for the lines. Could you provide a simple example?
0
Vladimir Milev
Telerik team
answered on 02 Jun 2009, 03:38 PM
Hi Alexy,

Here you go. 

Sincerely yours,
Vladimir Milev
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
0
Alexy
Top achievements
Rank 1
answered on 02 Jun 2009, 03:52 PM
Vladimir,

Thanks, it works fine, but again, I cannot change the strok thickness.
Line object has a StrokeThickness, but my changes don't apply :(
0
Taylor
Top achievements
Rank 2
answered on 02 Jun 2009, 04:16 PM
Vladimir,

Thanks for this example, it definitely solved my problem as I was in the same boat as Alexy.

Alexy,

It seems to work perfectly for me.  Are you uncommenting the code in the C# that's assigning the ItemStyle?  All I had to do was uncomment that code and then add this to the Custom Style:

Before: 
 
<Line x:Name="PART_DefiningGeometry" 
   Style="{TemplateBinding ItemStyle}" 
                                   
   Stroke="Red" 
                                   
   X1="0" 
   Y1="{TemplateBinding StartPointY}" 
   X2="{TemplateBinding EndPointX}" 
   Y2="{TemplateBinding EndPointY}"/> 
 
After: 
 
<Line x:Name="PART_DefiningGeometry" 
   Style="{TemplateBinding ItemStyle}" 
                                   
   Stroke="Red" 
   StrokeThickness="1" 
                                   
   X1="0" 
   Y1="{TemplateBinding StartPointY}" 
   X2="{TemplateBinding EndPointX}" 
   Y2="{TemplateBinding EndPointY}"/> 

-Taylor Smith
0
SteveL
Top achievements
Rank 2
answered on 31 Aug 2009, 03:49 PM
I'd like to change the line thickness too, but this example doesn't seem to work with the latest controls. Does something need to change to make it work?

And is it possible to change the line thickness at run time from the code behind?

Steve
0
SteveL
Top achievements
Rank 2
answered on 02 Sep 2009, 01:54 PM
Sorry - we can just set the StrokeThickness in the AppearanceSettings - I thought I'd tried that, but I must have been doing it wrong, it works fine today! Oops.

Steve
0
Raj
Top achievements
Rank 1
answered on 28 Jan 2010, 11:37 PM
FYI - the fix discussed here will not work with the latest release (2009.3.1314.1030). The control template has changed. Extract the latest template and used that instead.
0
ToddR
Top achievements
Rank 1
answered on 15 Feb 2010, 03:56 PM

.SeriesDefinition.Appearance.StrokeThickness = 0.5


I had same issue on chart line thickness and this worked for me.
0
Saravanan
Top achievements
Rank 1
answered on 18 Aug 2011, 10:34 AM
Hi Team,
 
i can't able to increase thickness of spline series stroke thickeness,
i have looked the attached code here i can see the stroke thickness But in my solution i can't find any improve thickness,
do i have to write style for thickeness ?,i compared the DLL version my version is : 2011.10.0419.1040 but
attached solution version is 2009.1.0525.1020

 
please let me know.
Saravanan
0
Evgenia
Telerik team
answered on 23 Aug 2011, 08:45 AM
Hi Saravanan,

Have you tried Todd's code line of setting StrokeThickness to the Series? It is working as expected on our local tests with binaries version 2011.1.0419.1040.

All the best,
Evgenia
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Saravanan
Top achievements
Rank 1
answered on 12 Sep 2011, 10:21 AM
Hi team,
i tried the code,its not working i increased the Stroke Thickness but my changes don't apply,
i want to increase line thickness,can u please share a simple solution ?
Thanks,
Saravanan
0
Evgenia
Telerik team
answered on 12 Sep 2011, 01:07 PM
Hello Saravanan,

The attached sample project demonstrates how you can change the StrokeThickness of the Spline Series using the latest Q2 binaries of our control. The thickness is applied as expected.

Regards,
Evgenia
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
0
Saravanan
Top achievements
Rank 1
answered on 12 Sep 2011, 03:05 PM
Thanks for your reply team,
but i already visited our site to increase thickness of spline..its working..
can we increase the line thickness ?
 
Thanks,
Saravanan
0
Evgenia
Telerik team
answered on 14 Sep 2011, 09:07 AM
Hi Saravanan,

Since you have asked  about the Spline's StrokeThickness "i can't able to increase thickness of spline series" - that's why the project I attached in my previous post was made with that series definition. Change it to Line and you will see that it works as expected without any additional settings.

All the best,
Evgenia
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Tags
Chart
Asked by
Alexy
Top achievements
Rank 1
Answers by
Vladimir Milev
Telerik team
Alexy
Top achievements
Rank 1
Taylor
Top achievements
Rank 2
SteveL
Top achievements
Rank 2
Raj
Top achievements
Rank 1
ToddR
Top achievements
Rank 1
Saravanan
Top achievements
Rank 1
Evgenia
Telerik team
Share this question
or