This question is locked. New answers and comments are not allowed.
Hello team,
In my chart x-axis contains string values like 'Q1 11',Q2 11,Q3 11,Q4 11,Q1 12 like this and on y axis double values i am not able to get zooming and scrolling to this.please have look at the code .
please help me ih this regards.
Thanks,
Sunita
In my chart x-axis contains string values like 'Q1 11',Q2 11,Q3 11,Q4 11,Q1 12 like this and on y axis double values i am not able to get zooming and scrolling to this.please have look at the code .
please help me ih this regards.
Thanks,
Sunita
public void DrawRangechart()
{
List<
List
<strChartData>> lstData = new List<
List
<strChartData>>();
lstData = GetRangeSeriesData();
radConcensusChart.DefaultView.ChartArea = new ChartArea();
for (int Icnt = 0; Icnt < lstData.Count(); Icnt++)
{
SeriesMapping ValMapping = new SeriesMapping();
RangeSeriesDefinition lineDefinition = new RangeSeriesDefinition();
lineDefinition.ShowItemLabels = false;
lineDefinition.ShowItemToolTips = true;
ValMapping.SeriesDefinition = lineDefinition;
ValMapping.ItemMappings.Add(new ItemMapping("XValue", DataPointMember.XCategory));
ValMapping.ItemMappings.Add(new ItemMapping("YValue", DataPointMember.Low));
ValMapping.ItemMappings.Add(new ItemMapping("YValue1", DataPointMember.High));
ValMapping.CollectionIndex = Icnt;
radConcensusChart.SeriesMappings.Add(ValMapping);
}
radConcensusChart.DefaultView.ChartArea.ZoomScrollSettingsX.ScrollMode = ScrollMode.ScrollAndZoom;
radConcensusChart.DefaultView.ChartArea.ZoomScrollSettingsY.ScrollMode = ScrollMode.ScrollAndZoom;
radConcensusChart.VerticalAlignment = VerticalAlignment.Top;
radConcensusChart.ItemsSource = lstData;
}