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
15
infragistics xamarin chart, legend only populated when turning phone physically
posted
I'm using Infragistics Xamarin chart component and the legend only appears when I turn the phone physically to change its orientation. Maybe it has something to do with the way it needs to refresh or the way I am populating it. Does anyone know how to fix this?

XAML for component

            <ig:XamDataChart x:Name="DataChart1" 
                        Title="Vami"
                             Legend="{x:Reference Legend}"
                        IsHorizontalZoomEnabled="True"
                        IsVerticalZoomEnabled="True">

            </ig:XamDataChart>

            <ig:Legend x:Name="Legend"
                           HorizontalOptions="End"
                           VerticalOptions="Start">
            </ig:Legend>

        </Grid>

code behind to populate charts

          xAxis.ItemsSource = Manager1;
            xAxis.Label = "Filedate";
            ChartVami.Axes.Add(xAxis);
            ChartVami.Axes.Add(yAxis);

            var series = new LineSeries
            {
                ValueMemberPath = "Vami",
                ItemsSource = Manager1,
                Title = Account1,
                XAxis = xAxis,
                YAxis = yAxis
            };

            var series2 = new LineSeries
            {
                ValueMemberPath = "Vami",
                ItemsSource = Manager2,
                Title = Account2,
                XAxis = xAxis,
                YAxis = yAxis
            };

            var series3 = new LineSeries
            {
                ValueMemberPath = "Vami",
                ItemsSource = Manager3,
                Title = Account3,
                XAxis = xAxis,
                YAxis = yAxis
            };

            ChartVami.Series.Add(series);
            ChartVami.Series.Add(series2);
            ChartVami.Series.Add(series3);
Parents Reply Children
No Data