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

[Solved] How can we show negative values in BulletGraph ?

3 Answers 86 Views
BulletGraph for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Nikhil
Top achievements
Rank 1
Nikhil asked on 13 Jul 2012, 06:58 AM
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

3 Answers, 1 is accepted

Sort by
0
Georgi
Telerik team
answered on 16 Jul 2012, 10:33 AM
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.

0
Nikhil
Top achievements
Rank 1
answered on 16 Jul 2012, 10:51 AM
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>

0
Tsvyatko
Telerik team
answered on 18 Jul 2012, 10:09 AM
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.

Tags
BulletGraph for XAML
Asked by
Nikhil
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Nikhil
Top achievements
Rank 1
Tsvyatko
Telerik team
Share this question
or