This is a migrated thread and some comments may be shown as answers.

Tick marks scaled incorrectly

3 Answers 60 Views
Gauge
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 1
Joel asked on 25 Aug 2011, 08:14 PM

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>

3 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 30 Aug 2011, 03:20 PM
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 >>

0
Joel
Top achievements
Rank 1
answered on 30 Aug 2011, 03:46 PM
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.
0
Andrey
Telerik team
answered on 02 Sep 2011, 09:25 AM
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 >>

Tags
Gauge
Asked by
Joel
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Joel
Top achievements
Rank 1
Share this question
or