Hi,
I'm using telerik reporting Q3 2013 sp1 (7.2.14.127) in winform application.
In my report i have a graph control with DateTime scale and month unit:
dateTimeScale1.BaseUnit = Telerik.Reporting.DateTimeScaleUnits.Months;
dateTimeScale1.LabelUnit = Telerik.Reporting.DateTimeScaleUnits.Months;
dateTimeScale1.MajorUnit = Telerik.Reporting.DateTimeScaleUnits.Months;
dateTimeScale1.MinorUnit = Telerik.Reporting.DateTimeScaleUnits.Months;
dateTimeScale1.PositionMode = Telerik.Reporting.AxisPositionMode.OnTicks;
and labels format:
this.graphAxis2.LabelFormat = "{0: MMM yy}";
this.graphAxis2.LabelPlacement = Telerik.Reporting.GraphAxisLabelPlacement.NextToAxis;
Graph was shown, but datetime scale is not corrert, it's shifted back of one month,
for example if date is 14/10/2015
in graph the label date is "sept 2015" instead of "oct 2015".
Graph datasource in the attached image is:
l.Add(new GraphSerie { Data = Convert.ToDateTime("14/10/2015"), Serie = "Andamento cellule", Valore = 100 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("8/11/2015"), Serie = "Andamento cellule", Valore = 150 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("22/12/2015"), Serie = "Andamento cellule", Valore = 130 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("18/01/2016"), Serie = "Andamento cellule", Valore = 256 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("4/02/2016"), Serie = "Andamento cellule", Valore = 500 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("15/03/2016"), Serie = "Andamento cellule", Valore = 0 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("16/04/2016"), Serie = "Andamento cellule", Valore = 600 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("27/05/2016"), Serie = "Andamento cellule", Valore = 199 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("14/06/2016"), Serie = "Andamento cellule", Valore = 247 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("19/07/2016"), Serie = "Andamento cellule", Valore = 445 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("14/10/2015"), Serie = "Soglia", Valore = 150 });
l.Add(new GraphSerie { Data = Convert.ToDateTime("19/07/2016"), Serie = "Soglia", Valore = 150 });
As you can see all dates in graph labels are shifted back of one month.
Where could be the problem?
Thank you very much.
Andrea