I'm using a GetLegendEvent to control the size and location of the Legend, see code below.
The problems is that the title of the series inside the legend is put into 2 lines of text eventhough there is PLENTY of room to only have one line of text.
I have attached an image that illustrates the problem. "Super axis 1", "Super axis 2" ect is in the top line, "Super axis 4" is in the bottom line - I would like all titles to be in one line...
Code: Select all
Rectangle chartRect = this.tChart1.ClientRectangle;
//e.Rectangle = new Rectangle(e.Rectangle.Left, chartRect.Top, e.Rectangle.Width, chartRect.Height);
e.Rectangle = new Rectangle(chartRect.Left+20, e.Rectangle.Top, chartRect.Width-40, e.Rectangle.Height);