Page 1 of 1

TChartGrid column width

Posted: Fri May 27, 2005 9:39 am
by 9235196
I connect chart grid width a tchart. Add some series on the chart.
For each of the series, i give a different title name.
How to set the column width of chart grid, in order to make all the title text can be visible? What if i change the windows text dpi, how to recalculate the column width for different text dpi, text name, etc?

Thank you

Posted: Sun Jun 05, 2005 9:30 am
by Pep
Hi Herman,

you can do :

Code: Select all

Series1.Title := 'My Title';
chartgrid1.ColWidths[2]:=25+Chart1.Canvas.TextWidth(Series1.Title); // default 25 - for symbol,..