Profile Picture

Legend VerticalAlign

Posted By inhyuk son 13 Years Ago
Author
Message
inhyuk son
Posted 13 Years Ago
View Quick Profile
Junior Member

Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)Junior Member (21 reputation)

Group: Forum Members
Last Active: 12 Years Ago
Posts: 21, Visits: 1
Hi Nevron~
Is there any way I can align a legend's label?

//sample code is here.
NChart m_Chart = nChartControl1.Charts[0];
m_Chart.BoundsMode = BoundsMode.Stretch;
m_Chart.Series.Clear();

nChartControl1.Legends[0].Data.ExpandMode = LegendExpandMode.RowsFixed;
nChartControl1.Legends[0].Data.RowCount = 1;

NLineSeries series1 = (NLineSeries)m_Chart.Series.Add(SeriesType.Line);
series1.Name = "Product A";
series1.DataLabelStyle.Visible = false;
series1.Values.Add(10);
series1.Values.Add(9);
series1.Values.Add(8);

NBarSeries series2 = (NBarSeries)m_Chart.Series.Add(SeriesType.Bar);
series2.Name = "Product B";
series2.DataLabelStyle.Visible = false;
series2.Values.Add(5);
series2.Values.Add(6);
series2.Values.Add(7);

nChartControl1.Refresh();

Attachments
Legend_VerticalAlign.GIF (52 views, 11.00 KB)



Similar Topics


Reading This Topic