Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Gauge > Tick marks scaled incorrectly

Not answered Tick marks scaled incorrectly

Feed from this thread
  • Joel avatar

    Posted on Aug 25, 2011 (permalink)

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

    Reply

  • Andrey Andrey admin's avatar

    Posted on Aug 30, 2011 (permalink)

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

    Reply

  • Joel avatar

    Posted on Aug 30, 2011 (permalink)

    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.

    Reply

  • Andrey Andrey admin's avatar

    Posted on Sep 2, 2011 (permalink)

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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Silverlight > Gauge > Tick marks scaled incorrectly
Related resources for "Tick marks scaled incorrectly"

Silverlight Gauge Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  ]