![]() | Steema Issues DatabaseNote: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;otherwise you can use StackOverflow. Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy. |
| Summary: | ability to change legend symbol height | ||
|---|---|---|---|
| Product: | VCL TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Legend | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | RESOLVED FIXED | ||
| Severity: | enhancement | CC: | david, sde.jt3 |
| Priority: | --- | ||
| Version: | 140220 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=3&t=14771 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
|
Description
yeray alonso
2014-03-17 10:56:26 EDT
Not exactly. Actually, the customer wants the ability to change the symbol height with the finality to make it smaller than the legend font size. We could make it fully controllable. Properties Height and HeightUnits are now available, but there is a problem. When symbol is smaller than font height, how should it be aligned vertically in respect to legend text ? (top, center, bottom ?) Default is now aligned to top. Also other properties are involved in how Height and Width are calculated: Continuous Squared Hi David, I'm the customer who was asking for this. The reason why I wanted it was to be able to go back to how the legend symbol used to be charted 2 or 3 releases ago. It used to be that if I had my series height size set to anything that had a smaller height than my font size, in my legend, the symbol size matched the series size up to the height of my font. If the series height was larger than the font height, the symbol height in the legend matched the font size. For example, if the font size of 8 is equivalent to a symbol height of 3, I would get the following: Series Symbol Height : Legend Font size : Legend Symbol Height 1 : 8 : 1 2 : 8 : 2 3 : 8 : 3 4 : 8 : 3 5 : 8 : 3 Now, no matter what the series size is, the legend symbol height always matches the Legend font size. So now it is the following: Series Height : Legend Font size : Legend Symbol Height: 1 : 8 : 3 2 : 8 : 3 3 : 8 : 3 4 : 8 : 3 5 : 8 : 3 I don't like how this looks on my legend. To get around it, I wanted to have the ability to manually change the symbol height to be smaller than the legend font height so that it would match my series size. When it used to automatically work this way, the default was for it to be centered, not continuous, and not squared. Honestly, I don't care so much about what these defaults are set to because I can change it in my code easily to create my own set of defaults for what works for me. But is there any way you can add a "match chart" property that would automatically set the legend symbol height to what the series symbol height is? The default could be false for those who prefer this new way that symbol heights are determined (match legend font height) but if I set it to true would have the old way it was determined (match series height up to the size of the legend font). And then having a height property too pretty much should cover the needs of any of your customers. Thanks so much for working on this! SDE |