Hi,
Im having troubles when having two dataseries in chart.
The series have different start and end dates that do not intersect.
The problem is that mars displays twice and the months seem to fall in wrong month (see attachment)
In the picture the blue (history) series should start in November and end in March.
The green (2013) series should start in April and end in December.
Here is the code that creates the series.
Can you help me you ?
-k
Im having troubles when having two dataseries in chart.
The series have different start and end dates that do not intersect.
The problem is that mars displays twice and the months seem to fall in wrong month (see attachment)
In the picture the blue (history) series should start in November and end in March.
The green (2013) series should start in April and end in December.
Here is the code that creates the series.
private DataSeries createDataSeries(List<
ChartData
> data, string legendLabel = "")
{
DataSeries series = new DataSeries();
BarSeriesDefinition definition = new BarSeriesDefinition();
definition.ShowItemToolTips = true;
definition.ShowItemLabels = false;
series.Definition = definition;
series.LegendLabel = legendLabel;
foreach (ChartData item in data)
{
DataPoint dataPoint = new DataPoint();
dataPoint.YValue = item.Value;
dataPoint.XValue = item.Caption.ToOADate();
dataPoint.IsDateTime = true;
dataPoint.LabelFormat = "MMM";
series.Add(dataPoint);
count++;
}
return series;
}
Can you help me you ?
-k