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

FeaturedMeasure does not appear when StartValue is not 0

1 Answer 11 Views
BulletGraph
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 28 Jan 2014, 04:34 AM
Hi,
I need to set the start value of my bullet graph to a non-zero value (80 for example), but this scenario does not seems to work.
This works perfectly (i.e. I see the FeaturedMeasure spanning from 90 to 120, and StartValue is set to 0)
<telerikDataVisualization:RadBulletGraph
            TickStep="10"
            LabelStep="20"
            StartValue="0"
            EndValue="200"
            FeaturedMeasureStartValue="90"
            FeaturedMeasure="120"
            FeaturedMeasureBrush="{StaticResource PhoneForegroundBrush}"/>

But this does not work (i.e. FeaturedMeasure is not shown at all, and the only change was setting the StartValue to 80).
<telerikDataVisualization:RadBulletGraph
            TickStep="10"
            LabelStep="20"
            StartValue="80"
            EndValue="200"
            FeaturedMeasureStartValue="90"
            FeaturedMeasure="120"
            FeaturedMeasureBrush="{StaticResource PhoneForegroundBrush}"/>

What am I missing?
Thanks
Alex.











1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 30 Jan 2014, 01:39 PM
Hi Alex,

Thanks for writing.
This behavior is by design. Please have a look at our online help, and more specifically, the section that describes the featured measure. When the scale of the bullet graph starts from a value different than zero, the featured measure changes its appearance. You have to tweak the appearance since its fill is PhoneBackgroundBrush by default. You can do this by specifying a data template for the FeaturedMeasureAlternativeTemplate property. For example:
<telerikDataVisualization:RadBulletGraph
    TickStep="10"
    LabelStep="20"
    StartValue="80"
    EndValue="200"
    FeaturedMeasureStartValue="90"
    FeaturedMeasure="120"
    FeaturedMeasureBrush="{StaticResource PhoneForegroundBrush}">
    <telerikDataVisualization:RadBulletGraph.FeaturedMeasureAlternativeTemplate>
        <DataTemplate>
            <Ellipse Width="10"
                     Height="10"
                     Fill="{StaticResource PhoneForegroundBrush}"/>
        </DataTemplate>
    </telerikDataVisualization:RadBulletGraph.FeaturedMeasureAlternativeTemplate>
</telerikDataVisualization:RadBulletGraph>

Just to clarify this behavior is implemented according the official bullet graph spec written by Stephen Few.

Please write again if you have other questions.


Regards,
Victor
Telerik
If you want to get updates on new releases, tips and tricks and sneak peek previews directly from the developers working on the UI for Windows Phone, subscribe to the blog feed now.
Tags
BulletGraph
Asked by
Alex
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or