Chart numbers

Thread is closed for posting
4 posts, 0 answers
  1. paul de Blaauw
    paul de Blaauw avatar
    14 posts
    Member since:
    Aug 2006

    Posted 03 Feb 2009 Link to this post

    Hello,

    I have a chart with large numbers data in it, However the numbers are over each other, so it isnt readable, second i dont think all data is displayed only one of the 2 series is.
    Is is possible to show the ammounts vertical?
    http://img3.imageshack.us/my.php?image=omzetcy5.jpg

    Thanks for help,

    Peter
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 04 Feb 2009 Link to this post

    Hi Paul,

    In order to make the series item labels display vertically you should use code like the one below on a per series basis:

    series.Appearance.LabelAppearance.RotationAngle = 90

    Also, in this case, please make sure you have turned off the intelligent labels.

    Best wishes,
    Velin
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. paul de Blaauw
    paul de Blaauw avatar
    14 posts
    Member since:
    Aug 2006

    Posted 05 Feb 2009 Link to this post

    Thanks that worked great, however because of the skin I have choosen, the text is not readable good at the moment. Is is possible to give the text another color?, or is there a way to make the chart higher, so the text can be in the black part?

    http://img6.imageshack.us/my.php?image=omzet2uz0.jpg
  4. Velin
    Admin
    Velin avatar
    391 posts

    Posted 06 Feb 2009 Link to this post

    Hi Paul,

    You can set a custom color to the labels of your series using code like the following:

    series.Appearance.TextAppearance.TextProperties.Color = Color.Black; 

    You could also make RadChart to render extra space above the series item by setting the AutoScale property of the YAxis to false. In this case you should manually provide values for the MinValue, MaxValue and Step properties of the axis and also make sure that all of your data falls within this predefined range. Here is a sample code demonstrating this scenario:

     
               chart.PlotArea.YAxis.AutoScale = false
                chart.PlotArea.YAxis.MinValue = 100000
                chart.PlotArea.YAxis.MaxValue = 1500000
                chart.PlotArea.YAxis.Step = 100000

    Hope this will help.

    All the best,
    Velin
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top