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
2290
Add solid hoizontal line at 0.0% YAxis
posted

Hello All,

I am using MVVM and I want to add a solid horizontal line at 0.0% YAxis, not fixed my YAxis values they are changed at run-time. My Xaml like this,

<ig:XamDataChart Name="chartResidual" BorderThickness="0" BorderBrush="Transparent" HorizontalZoomable="True">            
            <ig:SyncManager.SyncSettings>
                <ig:SyncSettings SyncChannel="syncGroup1"
                                            SynchronizeHorizontally="True"
                                            SynchronizeVertically="False" />
            </ig:SyncManager.SyncSettings>
            <ig:XamDataChart.Axes>
                <ig:CategoryXAxis x:Name="xAxis11"  ItemsSource="{Binding ChartSource}" MinorStroke="Transparent" MajorStroke="Transparent">                  
                    <ig:CategoryXAxis.Label>
                        <DataTemplate>
                            <StackPanel Orientation="Vertical">
                                <Border Background="Gray" Width="3" Height="5"/>
                                <TextBlock Text="{Binding Item.Date, StringFormat=MM/dd/yyyy}" HorizontalAlignment="Center" TextAlignment="Center">                                                    
                                                    <TextBlock.RenderTransform>                                                       
                                                    <TransformGroup>
                                                        <TransformGroup>
                                                        <RotateTransform Angle="30"/>
                                                        <TranslateTransform Y="3" X="33"/>
                                                    </TransformGroup>
                                                    </TransformGroup>
                                                </TextBlock.RenderTransform>
                                </TextBlock>
                            </StackPanel>
                        </DataTemplate>
                    </ig:CategoryXAxis.Label>

                </ig:CategoryXAxis>
                <ig:NumericYAxis x:Name="yAxis11"  MajorStroke="Gray"  MajorStrokeThickness="1.5" MajorStrokeDashArray="1 2">              
                    <ig:NumericYAxis.Label>
                        <DataTemplate>
                            <StackPanel Orientation="Horizontal" Margin="0">
                                <TextBlock Text="{Binding Item, StringFormat=P1}" Width="60" Foreground="Black" FontSize="11"></TextBlock>
                                <Border Background="Gray" Width="5" Height="3"/>
                            </StackPanel>
                        </DataTemplate>
                    </ig:NumericYAxis.Label>
                </ig:NumericYAxis>
            </ig:XamDataChart.Axes>
            <ig:XamDataChart.Series>
                <ig:LineSeries Thickness="2" MarkerType="None" ItemsSource="{Binding ChartSource}" ValueMemberPath="Value6"
                                            XAxis="{Binding ElementName=xAxis11}" YAxis="{Binding ElementName=yAxis11}" />
            </ig:XamDataChart.Series>
        </ig:XamDataChart>

and i want a line that i draw in attached picture in red color.

Parents Reply Children
No Data