Thanks. So a couple of questions.
If you want to align to the left edge do you use contentalignment = middleright?
Also, I have this code
nChartControl1.Charts.Clear()
nChartControl1.Legends.Clear()
Dim chart As NCartesianChart = New NCartesianChart
Dim legend As NLegend = New NLegend
nChartControl1.Charts.Add(chart)
nChartControl1.Panels.Add(legend)
chart.DisplayOnLegend = legend
legend.ContentAlignment = System.Drawing.ContentAlignment.MiddleLeft
legend.Location = New NPointL(New NLength(100, NRelativeUnit.ParentPercentage), New NLength(50, NRelativeUnit.ParentPercentage))
legend.Margins = New NMarginsL(New NLength(0), New NLength(0), New NLength(10), New NLength(0))
chart.ContentAlignment = System.Drawing.ContentAlignment.MiddleRight
chart.Size = New NSizeL(New NLength(100, NRelativeUnit.ParentPercentage), New NLength(50, NRelativeUnit.ParentPercentage))
chart.Location = New NPointL(New NLength(0), New NLength(50, NRelativeUnit.ParentPercentage))
The legend is where I expect it but the chart should be the full width of the window starting from the left but it isn't. Why is that?
Thanks Rich