Tick marks scaled incorrectly

4 posts, 0 answers
  1. Joel
    Joel avatar
    41 posts
    Member since:
    Nov 2010

    Posted 25 Aug 2011 Link to this post

    I'm trying to use a LinearScale outside of any gauge.  I intend to use it as the y axis for a chart that's hosted inside of a TimeBar control.  I'm noticing some weird scaling behavior.  The tick marks get thicker and wider as the container gets longer.  There doesn't seem to be any consideration of the width of the container, so the tick marks very quickly expand outside of the control.

     

    I've attached an image of the LinearScale in two positions to illustrate the issue.

    What can I do to prevent the tick marks from scaling like this?

    Here is the xaml I've been testing with:

    <telerik:LinearScale x:Name="scaleHeader"  VerticalAlignment="Top"
                            Width="80"  Min="0" Max="100" Top="0.05" Background="Transparent" BorderBrush="Transparent">
                                <telerik:LinearScale.MajorTick>
                                    <telerik:MajorTickProperties Location="OverInside" Background="Black" TickWidth=".1"/>
                                </telerik:LinearScale.MajorTick>
                                <telerik:LinearScale.MiddleTick>
                                    <telerik:MiddleTickProperties Location="OverInside" Background="Black"/>
                                </telerik:LinearScale.MiddleTick>
                                <telerik:LinearScale.MinorTick>
                                    <telerik:MinorTickProperties Location="OverInside" Background="Black"/>
                                </telerik:LinearScale.MinorTick>
                                <telerik:LinearScale.Label>
                                    <telerik:LabelProperties Foreground="Black" Offset="0.01"/>
                                </telerik:LinearScale.Label>
                            </telerik:LinearScale>
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 30 Aug 2011 Link to this post

    Hi Joel,

    This is expected behaviour. All things work as designed. The RadGauge control uses relative measurements for all scale elements. You can find more information here:

    http://www.telerik.com/help/silverlight/radgauge-features-relative-measurements.html

    You can't turn it off. Actually using of the LinearScale as axis for another control is not a good idea. I would recommend you to ask how to setup y-axis which have required view in the RadChart support group. 

    Kind regards,
    Andrey Murzov
    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 >>

  3. DevCraft banner
  4. Joel
    Joel avatar
    41 posts
    Member since:
    Nov 2010

    Posted 30 Aug 2011 Link to this post

    Thanks for the reply.  I'm not sure I understand your suggestion "to setup y-axis have required view".  The chart is scrolled because it's hosted in a timebar control.  If you're suggesting that the rad chart can implement some kind of frozen header feature, then that probably wouldn't help when the chart hosted in a timebar and doesn't control the scrolling.

    If you're suggesting that I can break the y-axis out of the chart, then that would be perfect, but I haven't seen anything like that.  I'll keep looking, but I would appreciate it if you could elaborate.
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 02 Sep 2011 Link to this post

    Hello Joel,

    I would recommend you to ask how to setup y-axis which have required view in the RadChart support group.

    Greetings,
    Andrey Murzov
    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 >>

Back to Top