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
360
Strange Behaviour
posted

Hi

I am evaluating the xamChart at the moment and am getting a strange behaviour on one of my pages where the graph does not seem to want to display any values.

I have had the graph working on another page with the same configuration ( different bindings) but cannot seem to get it working on this new page.

I have a datagrid that has the same data source binding and it is returning values correctly

Any ideas?

The code is pasted below.

Thanks for your help


Murray


            <DataGrid  ItemsSource="{Binding vwEquipmentTonnesHauledByDays}" Canvas.Left="14" Canvas.Top="553" Height="79" Width="391"/>
           
            <igCA:XamChart Name="TotalsChart2" Margin="5" Canvas.Left="-5" Canvas.Top="242">
                <igCA:XamChart.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="Black" Offset="0"/>
                        <GradientStop Color="White" Offset="1"/>
                    </LinearGradientBrush>
                </igCA:XamChart.Background>
                <igCA:XamChart.Axes>
                    <igCA:Axis AxisType="PrimaryX" Stroke="#FFFFFCFC" >

                    </igCA:Axis>
                    <igCA:Axis AxisType="PrimaryY"/>
                    <igCA:Axis AxisType="SecondaryY" Name="SecondYAxis"/>
                </igCA:XamChart.Axes>
                <igCA:XamChart.Series >
                    <igCA:Series
                        DataMapping="Value=TotalTonnes;Label=Date"
                        Label="Total Tonnes"
                        ChartType="Column"
                        DataSource="{Binding vwEquipmentTonnesHauledByDays}"
                        >
                        <igCA:Series.Fill>
                            <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                                <LinearGradientBrush.RelativeTransform>
                                    <TransformGroup>
                                        <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                                        <SkewTransform CenterY="0.5" CenterX="0.5"/>
                                        <RotateTransform Angle="-90" CenterY="0.5" CenterX="0.5"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </LinearGradientBrush.RelativeTransform>
                                <GradientStop Color="#FFA12828" Offset="0.164"/>
                                <GradientStop Color="White" Offset="0.991"/>
                            </LinearGradientBrush>
                        </igCA:Series.Fill>

                    </igCA:Series>
                    <igCA:Series
                        DataMapping="Value=AvLoad;Label=Date"
                        Label="Average Load"
                        ChartType="Line"
                        AxisY="SecondYAxis"
                        DataSource="{Binding vwEquipmentTonnesHauledByDays}" Stroke="#FF69EF11" Fill="#FF69EF11"
                        >

                    </igCA:Series>
                </igCA:XamChart.Series>
            </igCA:XamChart>

Parents
No Data
Reply
  • 26458
    Offline posted

    I used your XAML with some dummy data in the code behind and everything worked ok. Maybe something in your code behind could causing a problem? Or if you think the problem might be in the binding, try binding the series data sources in code behind to see if that makes a difference.

Children
No Data