Simple Point Label question:

3 posts, 0 answers
  1. Daniel Brooks
    Daniel Brooks avatar
    3 posts
    Member since:
    Aug 2009

    Posted 08 Dec 2009 Link to this post

    This is probably simple enough, though i can't seem to figure it out in a timely fashion.  I need my labels , which show up above a bar (bar graph-type), to show ON the bar itself, like it is shown in many of the documentation screens :
    http://www.telerik.com/help/silverlight/radchart-general-information-visual-structure.html

    Also, is there a function built-in that would keep the Point Label of the bar in view of the user even if the bar extends off of the chart?  I assume this would be fixed with placing the label *on* the bar itself, as shown in the link above.

    Thanks,

    Daniel
  2. Daniel Brooks
    Daniel Brooks avatar
    3 posts
    Member since:
    Aug 2009

    Posted 09 Dec 2009 Link to this post

    sorry to bump, but i can't find a simple reference to this in the docs.

    Ha.  It was someone's style applied to it.  sigh.
  3. Ves
    Admin
    Ves avatar
    2926 posts

    Posted 10 Dec 2009 Link to this post

    Hi Daniel,

    It seems you have figured it out. Just for the record -- the bar labels are inside the bars by default. A style like this would move them outside:

    <Style x:Key="LabelStyle" TargetType="chart:SeriesItemLabel">
                    <Style.Setters>
                        <Setter Property="Canvas.Top" Value="-25" />
                    </Style.Setters>
                </Style>

    Best regards,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top