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

Why is CartesianChartGrid not displayed on computer with Windows 7 (with servicepack 1)?

2 Answers 100 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Dmitry
Top achievements
Rank 1
Dmitry asked on 23 Nov 2016, 12:27 PM

Hello. I developed WPF MVVM Prism 6 application. There is RadCartesianChart with CartesianChartGrid there. Please see XAML below:

<telerik:RadTileView Grid.Row="1" Grid.Column="0" PreservePositionWhenMaximized="True" MinimizedColumnWidth="150">
    <!--Chart of signal-->
    <telerik:RadTileViewItem Header="First signal chart">
        <telerik:RadCartesianChart x:Name="chart1" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" EmptyContent="{Binding FirstSensorChartEmptyContent}">
            <!--Turn scrollbars off-->
            <telerik:RadCartesianChart.Resources>
                <Style TargetType="telerik:PanZoomBar">
                    <Setter Property="Visibility" Value="Collapsed"/>
                </Style>
            </telerik:RadCartesianChart.Resources>
            <!-- X-axis -->
            <telerik:RadCartesianChart.HorizontalAxis>
                <telerik:CategoricalAxis LabelInterval="4"/>
            </telerik:RadCartesianChart.HorizontalAxis>
            <!-- Y-axis -->
            <telerik:RadCartesianChart.VerticalAxis>
                <telerik:LinearAxis Minimum="-128" Maximum="127" MajorStep="8" />
            </telerik:RadCartesianChart.VerticalAxis>
            <!--Series of the chart-->
            <telerik:SplineSeries CategoryBinding="Item1" ValueBinding="Item2" ItemsSource="{Binding FirstSensorData}" Style="{StaticResource SplineSeriesStyle}"/>
            <!--Layout grid-->
            <telerik:RadCartesianChart.Grid>
                <telerik:CartesianChartGrid MajorLinesVisibility="XY" StripLinesVisibility="XY" IsTabStop="False">
                    <telerik:CartesianChartGrid.YStripeBrushes>
                        <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                        <SolidColorBrush Color="Transparent" />
                    </telerik:CartesianChartGrid.YStripeBrushes>
                    <telerik:CartesianChartGrid.XStripeBrushes>
                        <SolidColorBrush Color="#FFD7D7D7" Opacity="0.3" />
                        <SolidColorBrush Color="Transparent" />
                    </telerik:CartesianChartGrid.XStripeBrushes>
                </telerik:CartesianChartGrid>
            </telerik:RadCartesianChart.Grid>
            <!--Panning and zooming---->
            <telerik:RadCartesianChart.Behaviors>
                <telerik:ChartPanAndZoomBehavior DragMode="Pan" ZoomMode="Both" PanMode="Both"/>
            </telerik:RadCartesianChart.Behaviors>
        </telerik:RadCartesianChart>
    </telerik:RadTileViewItem>
    . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
</telerik:RadTileView>

As you can see in my application I use RadCartesianChart inside RadTileView. I display the layout of only one chart, but all eight of them. Each of them is in its own RadTileViewItem. The problem is that the one of my customers doesn't see layout grid on his computer. He sees: 1) X-axis and Y-axis, 2) All the risks and labels of individual segments on the X-axis and Y-axis, 3) The series (signal curve) but he doesn't see layout grid! He has Windows 7 OS with servicepack 1 on his computer. But the other customer who also install my application sees layout grid perfectly. This second customer also has a computer with Windows 7 OS with servicepack 1 but he has no problem with visualizing of charts.

2 Answers, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 28 Nov 2016, 07:43 AM
Hi Yaroslav,

Curious behavior. The OS version should not impact the chart's behavior. The most common reason for missing components is the use of NoXaml dlls. So, if you use them along with the implicit styles theming mechanism, make sure that any styles that target Telerik controls are based on their default style. You can see this in the Using Implicit Styles help article. In your scenario, it is possible to be something else because the application behaves differently on the different machines, but you can take a look anyway.

Additionally, you can check if the grid lines appear after resize of the chart. And test it also with the latest version of UI for WPF (there could be a fix that impacts also this behavior). If this doesn't help you can try to isolate the issue in a new project and send it over.

Regards,
Martin
Telerik by Progress
Telerik UI for WPF is ready for Visual Studio 2017 RC! Learn more.
0
Dmitry
Top achievements
Rank 1
answered on 07 Dec 2016, 11:44 AM
Hello, Martin. Hi reinstalled OS (Windows 7) and now the layout grid is displayed perfectly. So now is OK.
Tags
ChartView
Asked by
Dmitry
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Dmitry
Top achievements
Rank 1
Share this question
or