Hi,
I have created a composite chart and has added 2 layers to it. Each layer is of chart type stack column chart.
I am creating a numeric series and adding this to the Series collection. Then this is added to the layer.
Everything works fine. I am setting the label of the series also.
Issue is this label is coming in horizontal way and i want this to come in vertical manner.
I tried setting the series label but nothing seems to work. I feel the label is added to the series and hence the axis series method will not work
This is the code and the snapshot of the chart
Any help is appreciated.
NumericSeries s1 = new NumericSeries();
s1.Key =
"series" + intRowIndex.ToString() + Convert.ToString(dsVerticalWiseNPSData.Tables[intTableIndex].Rows[intRowIndex]["SURVEYID"etractors);
s1.Points.Add(dataPointPassive);
s1.Points.Add(dataPointPromotors);
s1.Label =
Convert.ToString(dsVerticalWiseNPSData.Tables[intTableIndex].Rows[intRowIndex]["VERTICAL_NAME"]) + " " + Convert.ToString(dsVerticalWiseNPSData.Tables[intTableIndex].Rows[intRowIndex]["Survey Name"]);
seriesItems[intSeriesIndex + intRowIndex] = s1;
layers[intTableIndex].Series.Add(s1);
The above series is added to the layer and all works fine
But even if i give chart.
Labels.Orientation =
TextOrientation.VerticalLeftFacing; its coming as horizontal only
Try using:
.Labels.SeriesLabels.Orientation = TextOrientation.VerticalLeftFacing;
Hi, We have done this but still the label comes in horizontal direction. I feel its coz of the way we are displaying data in the chart. We add the numeric series to the series collection and add it to the layer. Please find the code below
);
(); s1.Key =
]); s1.Points.Add(dataPointDetractors); s1.Points.Add(dataPointPassive); s1.Points.Add(dataPointPromotors); s1.Label =
s1.Points.Add(dataPointDetractors);
]);
In the composite chart the axes are different. Try looking here in which axis you need to set the orientation:
https://www.infragistics.com/community/forums/f/ultimate-ui-for-wpf/59904/tooltip-on-a-single-point-of-a-xamchart-where-chart-type-is-area#59904