Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
Series label orientation in composite stack column chart
posted

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

Parents Reply Children
No Data