How to truncate legend in a chart?
Posted: Tue Jan 08, 2008 9:14 am
Hello,
I have a problem with large texts in legend, maybe someone has a solution to this problem?
The legend is at the bottom of my chart so that is has the maximum width availlable. But sometimes the chart width must be rather small, and TeeChart then hides the legend (or moves it outside the chart, I don't know).
What I would like to do is to wrap or truncate the texts that are too long, which is far better than having no legend at all.
I read on this forum that TeeChart supports none of these functionnalities, but that it is possible to do it by hooking up the GetLegendText event.
The problem here is that GetLegendText is a TChart event, and I'm using a Chart which doen't not have this event...
Maybe someone has another solution?
Regard,
Cédric Richard
Analyst - Developer @ Level IT
http://www.level-it.be
I have a problem with large texts in legend, maybe someone has a solution to this problem?
The legend is at the bottom of my chart so that is has the maximum width availlable. But sometimes the chart width must be rather small, and TeeChart then hides the legend (or moves it outside the chart, I don't know).
What I would like to do is to wrap or truncate the texts that are too long, which is far better than having no legend at all.
I read on this forum that TeeChart supports none of these functionnalities, but that it is possible to do it by hooking up the GetLegendText event.
The problem here is that GetLegendText is a TChart event, and I'm using a Chart which doen't not have this event...
Maybe someone has another solution?
Regard,
Cédric Richard
Analyst - Developer @ Level IT
http://www.level-it.be