Hi,
I'm using the following code to display a bar chart. I used to set the height and width for the NChartControl as shown. But if you refer Image 1, if i predefined the height, the legend is cut at the end. Is there any way to make the height stretch automatically?
NChartControl NChartControl1 = new NChartControl();
NLegend m_Legend;
//config chart control
NChartControl1.Width = 700;
NChartControl1.Height = 300;
if (NChartControl1.RequiresInitialization)
{
//Config chart
NChart chart = NChartControl1.Charts[0];
}
Any help is much appreciated.
Best regards,
Hasindu