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
How to truncate legend in a chart?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Cédric,
Maybe you could try processing legend items like this:
Maybe you could try processing legend items like this:
Code: Select all
foreach (Steema.TeeChart.LegendItem li in tChart1.Legend.Items)
{
//process li.Text here
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |