Legend Symbols and Values
Legend Symbols and Values
I have a chart displaying multiple pie graphs. With LegendStyle set to lsValues (2), the legend displays the color smybol, value (first series), and title. Obviously, the values should not be displayed as this is a multiple chart. If I set LegendStyle to anything else, the symbols are not displayed. The legend seems meaningless to me without the symbols. How can I display the symbols and titles but NO values?
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi MG,
You should do as one of the live ASP examples available at the TeeChart program group. Go to the "Page showing 4 different export formats " example which containsan "OnGetAxisLabel" example. A similar technique will have to be applied here, manually "draw" changes using Canvas methods, as text cannot by passed in html script as you mentioned.
You should do as one of the live ASP examples available at the TeeChart program group. Go to the "Page showing 4 different export formats " example which containsan "OnGetAxisLabel" example. A similar technique will have to be applied here, manually "draw" changes using Canvas methods, as text cannot by passed in html script as you mentioned.
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 |
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi MG,
Sorry if I wasn't clear enough in my previous reply. It doesn't mind if series are not pie series as it will be the same. The code you need is at CompareOutput.asp and CompareOutput.inc which you will find at C:\Program Files\Steema Software\TeeChart Pro v7 ActiveX Control\Examples\IIS & Asp (default english installation path). The code I was referring to is OnBeforeDrawSeries event at CompareOutput.inc which draws "Very bad ", "Bad", "OK", "Good" and "Excellent" labels on the left axis. You should do something similar with the legend symbols, custom drawing on the canvas.
Sorry if I wasn't clear enough in my previous reply. It doesn't mind if series are not pie series as it will be the same. The code you need is at CompareOutput.asp and CompareOutput.inc which you will find at C:\Program Files\Steema Software\TeeChart Pro v7 ActiveX Control\Examples\IIS & Asp (default english installation path). The code I was referring to is OnBeforeDrawSeries event at CompareOutput.inc which draws "Very bad ", "Bad", "OK", "Good" and "Excellent" labels on the left axis. You should do something similar with the legend symbols, custom drawing on the canvas.
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 |
Hello, again
Ok, I got a workaround. If I set the legends' ColumnWidthAuto to false, and specify top, left, and width values (so I know where the legend is), I can then use Canvas.Textout to place my titles. I use a LegendStyle of 4, which for some reason draws only the colored symbol boxes.
This seems like a lot of trouble just to omit something from the legend which shouldn't be there in the first place.
Ok, I got a workaround. If I set the legends' ColumnWidthAuto to false, and specify top, left, and width values (so I know where the legend is), I can then use Canvas.Textout to place my titles. I use a LegendStyle of 4, which for some reason draws only the colored symbol boxes.
This seems like a lot of trouble just to omit something from the legend which shouldn't be there in the first place.