Profile Picture

Auto height NChartControl

Posted By Hasindu Diyabalanage 11 Years Ago
Author
Message
Hasindu Diyabalanage
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)Forum Newbie (7 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 7, Visits: 1
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

Attachments
Image 1.gif (80 views, 40.00 KB)



Similar Topics


Reading This Topic