CartesianChart not showing up in version 2015.1.0401.45

3 posts, 1 answers
  1. Pawel
    Pawel avatar
    39 posts
    Member since:
    Apr 2014

    Posted 25 Aug 2015 Link to this post

    Hi,
    After a necessary downgrade form 2015.2.728.45 to 2015.1.0401.45 CartesianChart is not showing up. 

    Code:

            <telerik:ChartDataSource x:Name="ChartDataSource1" Width="500" Height="400"
                                ItemsSource="{Binding Items}"
                                SamplingUnit="Day" 
                                SamplingUnitInterval="1" Grid.Row="0" Grid.Column="1"
                                       Margin="10,35,10,0" VerticalAlignment="Top" HorizontalAlignment="Center"/>

            <telerik:RadCartesianChart x:Name="RadChart1" Width="495" Height="450" Grid.Row="0" Grid.Column="1"
                                       Margin="10,35,10,0" VerticalAlignment="Top" HorizontalAlignment="Center">
                <telerik:RadCartesianChart.HorizontalAxis>
                    <telerik:DateTimeCategoricalAxis LabelFormat="dd.MM" Title="{x:Static languages:Lang.TimesheetTransTime}"
                                                DateTimeComponent="Ticks"/>
                </telerik:RadCartesianChart.HorizontalAxis>
                <telerik:RadCartesianChart.VerticalAxis>
                    <telerik:LinearAxis Title="{x:Static languages:Lang.CostHours}" Padding="0,20,0,0" Margin="0,20,0,0" />
                </telerik:RadCartesianChart.VerticalAxis>
                <telerik:BarSeries ShowLabels="True"
                            CategoryBinding="TimesheetTransDateTime"
                            ValueBinding="Hours"
                            ItemsSource="{Binding ElementName=ChartDataSource1}">
                </telerik:BarSeries>
            </telerik:RadCartesianChart>

    In version 2015.2.728.45 everything  was working correctly.
    Is there something I'm supposed to know?

  2. Answer
    Martin
    Admin
    Martin avatar
    1101 posts

    Posted 25 Aug 2015 Link to this post

    Hi Pawel,

    Please double check the version of the referenced Telerik assemblies. If they are NoXaml (more light version that doesn't contain the Style of the controls) you will need to merge the resource files with the controls' Style as described in the Setting a Theme (Using Implicit Styles) help article. Or you can reference the Xaml version of the assemblies and skip the resources' merging.

    Regards,
    Martin
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Pawel
    Pawel avatar
    39 posts
    Member since:
    Apr 2014

    Posted 25 Aug 2015 in reply to Martin Link to this post

    Styles was missing. Thanks.
Back to Top