Problem in Zoom bar and Cartesian grid are not shown in chartview wpf

2 posts, 0 answers
  1. Senthil kumar
    Senthil kumar avatar
    21 posts
    Member since:
    Sep 2013

    Posted 19 Dec 2013 Link to this post

    Here i have mentioned implementation of code. i created a custom control 'VSRadCartesianChart' and implemented some dependency control in  it and generate the X,Y axis and line series are dynamically.

    i applied Zoom&Par bar visible to both axis and applied style that that it only visible when zoom & par when applied.(other wise in normal case, it does it show).

    Also , I have implemented 'CartesianGrid' in it and applied Y axis line visibility.


    problem which are facing:
    1. setting which applied in cartesian grid is not shown. it doesn't apply any style in it. (see the attached image)
    2. Y-axis zoombar is not shown. 
    3. TargetType="chartView:PanZoomBar" style setting is not applied (controlling the visiblity of panzoombar based in property in viewmodel)


    could you please give your feedback. it is urgent requirement.





    <local:VSRadCartesianChart x:Name="Chart1"    Zoom="{Binding Zoom }" PanOffset="{Binding PanOffset}"  local:ChartViewDragDropBehaviour.IsEnabled="True" AllowDrop="True"   >
                                   
     <local:VSRadCartesianChart.Resources>
                                        <Style TargetType="chartView:PanZoomBar">
                                            <Setter Property="Visibility" Value="{Binding Path=IsZoomBarVisible Converter={StaticResource BoolToCollapsedConverter} }" />
                                        </Style>

    <Style x:Key="BorderStyle" TargetType="Border">
                                            <Setter Property="Background" Value="#1B9DDE" />
                                        </Style>
      </local:VSRadCartesianChart.Resources>
    ---
    ---
    ---
    <local:VSRadCartesianChart.Grid >
                                        <telerik:CartesianChartGrid MajorLinesVisibility="Y" StripLinesVisibility="Y" >
                                            <telerik:CartesianChartGrid.YStripeBrushes>
                                            <SolidColorBrush Color="#FFD7D7D7"  Opacity="0.3" />
                                            <SolidColorBrush Color="Transparent" />
                                            </telerik:CartesianChartGrid.YStripeBrushes>
                                        </telerik:CartesianChartGrid>
                                    </local:VSRadCartesianChart.Grid>

                                    <local:VSRadCartesianChart.LinearSeriesSource>
                                            <Binding Path="ChartList" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"  />
                                    </local:VSRadCartesianChart.LinearSeriesSource>
                                     <local:VSRadCartesianChart.Behaviors >
                                        <telerik:ChartPanAndZoomBehavior ZoomMode="Both" PanMode="Both" >
                                        </telerik:ChartPanAndZoomBehavior>
                                    </local:VSRadCartesianChart.Behaviors>
           </local:VSRadCartesianChart>
  2. Peshito
    Admin
    Peshito avatar
    497 posts

    Posted 23 Dec 2013 Link to this post

    Hi Senthil kumar,

    I tried to reproduce the issues you are facing but to no avail. I had not problems showing the CartesianGrid and the PanZoomBars on both axis, as well as applying the style to the PanZoomBar. Please provide a sample runnable project isolating the issues so I can debug it locally and give you a possible solution. As this is a forum thread you can do that by using a third party website for upload and share or open a ticket thread and attach it there.

    Also, in case you require faster replies you can open a support ticket thread where you will get a reply within 24 hours.

    Regards,
    Peshito
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top