FeaturedMeasure does not appear when StartValue is not 0

2 posts, 0 answers
  1. Alex
    Alex avatar
    14 posts
    Member since:
    Nov 2013

    Posted 27 Jan 2014 Link to this post

    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.











  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 30 Jan 2014 Link to this post

    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.
  3. DevCraft banner
Back to Top