We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Problem with DateTimeAxis.IntervalType = DateTimeIntervalType.Months

Thread ID:

Created:

Updated:

Platform:

Replies:

125006 Jul 14,2016 12:27 AM Jul 18,2016 09:36 AM Xamarin.Forms 1
loading
Tags: SfChart
Lloyd
Asked On July 14, 2016 12:27 AM

I has an ObservableCollection<BarItem> where BarItem is 
        public class BarModel
        {
            public DateTime Date { get; set; }
            public double Actual { get; set; }
            public double Estimated { get; set; }
        }

And I display it with the following Xaml

                <chart:SfChart x:Name="Chart" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand">

                  <chart:SfChart.PrimaryAxis>
                    <chart:DateTimeAxis Minimum="{Binding Start}" Maximum="{Binding End}"  IntervalType="Months" >
                      <chart:DateTimeAxis.LabelStyle>
                        <chart:ChartAxisLabelStyle LabelFormat = "dd MMM"></chart:ChartAxisLabelStyle>
                      </chart:DateTimeAxis.LabelStyle>
                    </chart:DateTimeAxis>
                  </chart:SfChart.PrimaryAxis>

                  <chart:SfChart.SecondaryAxis>
                    <chart:NumericalAxis Maximum="100.0" Minimum="0" Interval="10.0">
                    </chart:NumericalAxis>
                  </chart:SfChart.SecondaryAxis>

                  <chart:SfChart.Series>
                    <chart:ColumnSeries ItemsSource="{Binding Bars}" XBindingPath="Date" YBindingPath="Actual" Color="Red" LegendIcon="None" />
                    <chart:ColumnSeries ItemsSource="{Binding Bars}" XBindingPath="Date" YBindingPath="Estimated" Color="Blue" LegendIcon="None" />
                    </chart:ColumnSeries>
                  </chart:SfChart.Series>

                </chart:SfChart>


My problem is the interval type property
When it is set to Days, it works fine, when it is set to month (i.e. IntervalType="Months" ) no bar is displayed at all?!

What am I missing? any tips?

Yuvaraj Palanisamy [Syncfusion]
Replied On July 18, 2016 09:36 AM

Hi Lloyd,
 
Thanks for contacting Syncfusion Support
 
We are not able to reproduce the issue and we have prepared a sample for your reference.  Please update us the modified  sample for further assistance on this.
 
Thanks,
Yuvaraj
  
  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;