Line Series Thickness

16 posts, 0 answers
  1. Alexy
    Alexy avatar
    11 posts
    Member since:
    May 2009

    Posted 22 May 2009 Link to this post

    Hey,

    Is it possible to change the thickness of the Line or Spline Series?
  2. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 25 May 2009 Link to this post

    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.
  3. DevCraft banner
  4. Alexy
    Alexy avatar
    11 posts
    Member since:
    May 2009

    Posted 29 May 2009 Link to this post

    Thanks Vladimir,

    I works good for bars, but I cannot make the style for the lines. Could you provide a simple example?
  5. Vladimir Milev
    Admin
    Vladimir Milev avatar
    1061 posts

    Posted 02 Jun 2009 Link to this post

    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.
  6. Alexy
    Alexy avatar
    11 posts
    Member since:
    May 2009

    Posted 02 Jun 2009 Link to this post

    Vladimir,

    Thanks, it works fine, but again, I cannot change the strok thickness.
    Line object has a StrokeThickness, but my changes don't apply :(
  7. Taylor
    Taylor avatar
    9 posts
    Member since:
    May 2009

    Posted 02 Jun 2009 Link to this post

    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
  8. SteveL
    SteveL avatar
    68 posts
    Member since:
    Apr 2009

    Posted 31 Aug 2009 Link to this post

    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
  9. SteveL
    SteveL avatar
    68 posts
    Member since:
    Apr 2009

    Posted 02 Sep 2009 Link to this post

    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
  10. Raj
    Raj avatar
    34 posts
    Member since:
    Aug 2009

    Posted 28 Jan 2010 Link to this post

    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.
  11. ToddR
    ToddR avatar
    6 posts
    Member since:
    Nov 2009

    Posted 15 Feb 2010 Link to this post

    .SeriesDefinition.Appearance.StrokeThickness = 0.5


    I had same issue on chart line thickness and this worked for me.
  12. Saravanan
    Saravanan avatar
    36 posts
    Member since:
    Jun 2011

    Posted 18 Aug 2011 Link to this post

    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
  13. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 23 Aug 2011 Link to this post

    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 >>

  14. Saravanan
    Saravanan avatar
    36 posts
    Member since:
    Jun 2011

    Posted 12 Sep 2011 Link to this post

    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
  15. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 12 Sep 2011 Link to this post

    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
  16. Saravanan
    Saravanan avatar
    36 posts
    Member since:
    Jun 2011

    Posted 12 Sep 2011 Link to this post

    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
  17. Evgenia
    Admin
    Evgenia avatar
    1406 posts

    Posted 14 Sep 2011 Link to this post

    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 >>
Back to Top
DevCraft banner