Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Windows 8 > BulletGraph for XAML > How can we show negative values in BulletGraph ?

Not answered How can we show negative values in BulletGraph ?

Feed from this thread
  • Nikhil avatar

    Posted on Jul 13, 2012 (permalink)

    I am working on converting my Silverlight RadChart to BulletGraph in metro style app. So I was just wondering that is there any way that we can show negative values in BulletGraph as well. ??



    Please help.



    Thanks,

    Nikhil

    Reply

  • Georgi Georgi admin's avatar

    Posted on Jul 16, 2012 (permalink)

    Hello Nikhil,

    Thank you very much for your interest in RadControls for Metro.

    Generally RadBulletGraph supports negative values and such scenarios should be easily implemented.

    Could you please be more specific on what you are trying to achieve and what you app requirements are so that I can help you?

    Thanks you for your time, I am looking forward to your reply.

    All the best,
    Georgi
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

    Reply

  • Nikhil avatar

    Posted on Jul 16, 2012 (permalink)

    Hi Georgi,



    Thanks for the reply.

    What I'm trying to do is, I want to show some sales data across different geo locations in RadBulletGraph.

    Till the values are in positive the mark for the value is shown. But when value is negative I am not able to see the mark for value.



    Also is there any property for BulletGraph which we can use to show the value as tooltip.



    Please find below the code which I am using for creating BulletGraph. Also PFA the screenshot of BulletGraph which I have created.

    <telerik:RadBulletGraph FeaturedMeasureStartValue="0"

    EndValue="150"

    TickStep="30"

    LabelStep="30"

    LabelOffset="10"

    FeaturedMeasureThickness="6"

    LabelTemplate="{StaticResource LabelTemplate}"

    TickTemplate="{StaticResource TickTemplate}"

    ComparativeMeasureTemplate="{StaticResource EmptyTemplate}"

    FeaturedMeasureAlternativeTemplate="{StaticResource EmptyTemplate}"

    Height="180"

    Width="40"

    ComparativeMeasure="0">

      <telerik:RadBulletGraph.QualitativeRanges>

         <telerik:BarIndicatorSegment Stroke="{StaticResource GoodBrush}" Thickness="20"/>

         <telerik:BarIndicatorSegment Stroke="{StaticResource SatisfactoryBrush}" Thickness="20"/>

         <telerik:BarIndicatorSegment Stroke="Yellow" Thickness="20"/>

      </telerik:RadBulletGraph.QualitativeRanges>

    </telerik:RadBulletGraph>

    Attached files

    Reply

  • Tsvyatko Tsvyatko admin's avatar

    Posted on Jul 18, 2012 (permalink)

    Hello Nikhill,

     Thank you for sharing information regarding your scenario. Based on it I have prepared sample project demonstrating how to achive the desired behavior.

    In order to display negative values one needs to use StartValue property and set in to the min negativa value allowed.

    Regarding the tooltip you can utilize the build-in tooltip service as demosntrated in the project.

    Let us know if this helps in your scenario.

    Kind regards,
    Tsvyatko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

    Attached files

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Windows 8 > BulletGraph for XAML > How can we show negative values in BulletGraph ?