Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
XamBulletGraph multiple comparative marker workaround
posted

Hi,

I am trying to implement the workaround stated in the help for creating an XamBulletGraph with multiple comparative markers by: The effect of displaying multiple performance bars or multiple comparative markers can be achieved by overlaying several instances of the control.

The reason I am doing this is so that I can show values for both the TargetValue as well as a StandardDeviation TargetValue. Ideally I want to only to display the TargetValue for the second XamBulletGraph and nothing else. I tried setting everything but the TargetValue to Transparent, but something must not be quite right in my xaml because if I try to add my second bullet graph on top of the original one it covers it but shows the Standard Deviation marker.  If I reverse them then I cannot see my Standard Deviation marker.  

Are there any existing samples available for this particular workaround?

Thanks,

Amanda

 

Here is the xaml:


           
                                                        VerticalAlignment="Center"
                                        MinimumValue="{Binding MinValue}"
                                        MaximumValue="{Binding MaxValue}"
                                        Interval="{Binding Interval}"
                                        MinorTickCount="{Binding MinorTickCount}"
                                        TickBrush="#F79646"
                                        TickStrokeThickness="3"
                                        TargetValue="{Binding TargetValue}"
                                        TargetValueBreadth="12"
                                        TargetValueName="{Binding TargetValueName}"
                                        TargetValueBrush="White"
                                        TargetValueOutline="Black"
                                        TargetValueStrokeThickness=".5"
                                        Value="{Binding Value}"
                                        ValueName="{Binding ValueName}"
                                        ValueBrush="White"
                                        ValueOutline="Black"
                                        ValueStrokeThickness=".5"
                                        LabelFormat="{}{0}"
                                        Title="{Binding Title}"
                                        TitleStyle="{DynamicResource titleStyle}"
                                        TitlesHorizontalRatio=".2"
                                        ShowToolTip="True"
                                        FontWeight="Bold">
                   
                       
                       
                   
               
                                                        Background="Transparent"
                                        VerticalAlignment="Center"
                                        MinimumValue="{Binding MinValue}"
                                        MaximumValue="{Binding MaxValue}"
                                        Interval="{Binding Interval}"
                                        MinorTickCount="{Binding MinorTickCount}"
                                        TickBrush="Transparent"
                                        TickStrokeThickness="3"
                                        TargetValue="{Binding StandardDeviation}"
                                        TargetValueBreadth="10"
                                        TargetValueName="{Binding StandardDeviationValueName}"
                                        TargetValueBrush="DimGray"
                                        TargetValueOutline="Black"
                                        TargetValueStrokeThickness=".5"
                                        Value="{Binding Value}"
                                        ValueName="{Binding ValueName}"
                                        ValueBrush="Transparent"
                                        ValueOutline="Transparent"
                                        ValueStrokeThickness=".5"
                                        LabelFormat="{}{0}"
                                        Title="{Binding Title}"
                                        TitleStyle="{DynamicResource titleStyle}"
                                        TitlesHorizontalRatio=".2"
                                        ShowToolTip="True"
                                        FontWeight="Bold">
                   
                       
                       
                   
                                
           
       

Parents
No Data
Reply
  • 385
    Offline posted

    Just realized my xaml was missing some pieces after I hit post.  Here it is again:

    <DataTemplate x:Key="graphObjectItemTemplate">
                <Grid>
                    <igGauge:XamBulletGraph Height="80"
                                            Background="Transparent"
                                            VerticalAlignment="Center"
                                            MinimumValue="{Binding MinValue}"
                                            MaximumValue="{Binding MaxValue}"
                                            Interval="{Binding Interval}"
                                            MinorTickCount="{Binding MinorTickCount}"
                                            TickBrush="Transparent"
                                            TickStrokeThickness="3"
                                            TargetValue="{Binding StandardDeviation}"
                                            TargetValueBreadth="10"
                                            TargetValueName="{Binding StandardDeviationValueName}"
                                            TargetValueBrush="DimGray"
                                            TargetValueOutline="Black"
                                            TargetValueStrokeThickness=".5"
                                            Value="{Binding Value}"
                                            ValueName="{Binding ValueName}"
                                            ValueBrush="Transparent"
                                            ValueOutline="Transparent"
                                            ValueStrokeThickness=".5"
                                            LabelFormat="{}{0}"
                                            Title="{Binding Title}"
                                            TitleStyle="{DynamicResource titleStyle}"
                                            TitlesHorizontalRatio=".2"
                                            ShowToolTip="True"
                                            FontWeight="Bold">
                        <igGauge:XamBulletGraph.Ranges>
                            <ig:XamLinearGraphRange StartValue="{Binding LowRangeMinValue}" EndValue="{Binding LowRangeMaxValue}" Brush="Transparent" Caption="{Binding LowRangeCaption}"/>
                            <ig:XamLinearGraphRange StartValue="{Binding HighRangeMinValue}" EndValue="{Binding HighRangeMaxValue}" Brush="Transparent" Caption="{Binding HighRangeCaption}"/>
                        </igGauge:XamBulletGraph.Ranges>
                    </igGauge:XamBulletGraph>

                    <igGauge:XamBulletGraph Height="80"
                                            VerticalAlignment="Center"
                                            MinimumValue="{Binding MinValue}"
                                            MaximumValue="{Binding MaxValue}"
                                            Interval="{Binding Interval}"
                                            MinorTickCount="{Binding MinorTickCount}"
                                            TickBrush="#F79646"
                                            TickStrokeThickness="3"
                                            TargetValue="{Binding TargetValue}"
                                            TargetValueBreadth="12"
                                            TargetValueName="{Binding TargetValueName}"
                                            TargetValueBrush="White"
                                            TargetValueOutline="Black"
                                            TargetValueStrokeThickness=".5"
                                            Value="{Binding Value}"
                                            ValueName="{Binding ValueName}"
                                            ValueBrush="White"
                                            ValueOutline="Black"
                                            ValueStrokeThickness=".5"
                                            LabelFormat="{}{0}"
                                            Title="{Binding Title}"
                                            TitleStyle="{DynamicResource titleStyle}"
                                            TitlesHorizontalRatio=".2"
                                            ShowToolTip="True"
                                            FontWeight="Bold">
                        <igGauge:XamBulletGraph.Ranges>
                            <ig:XamLinearGraphRange StartValue="{Binding LowRangeMinValue}" EndValue="{Binding LowRangeMaxValue}" Brush="#FFDA30" Caption="{Binding LowRangeCaption}"/>
                            <ig:XamLinearGraphRange StartValue="{Binding HighRangeMinValue}" EndValue="{Binding HighRangeMaxValue}" Brush="#F66656" Caption="{Binding HighRangeCaption}"/>
                        </igGauge:XamBulletGraph.Ranges>
                    </igGauge:XamBulletGraph>
                    
                </Grid>
            </DataTemplate>

Children