Steema Issues Database

Note: 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.



Bug 1974

Summary: Legend rectangle bounds to consider the longest text for each column
Product: HTML5 JavaScript TeeChart Reporter: yeray alonso <yeray>
Component: LegendAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=18&t=16798
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description yeray alonso 2018-01-23 05:31:13 EST
When you have the legend aligned to the bottom (or top) and one of the texts is longer than the rest (ie when one of the series has a long title) the legend looks weird.

It can be seen in this example:

https://jsfiddle.net/Norike/903u1beo/

The problem is the long string is taken as the width for all the columns, incorrectly assuming all the columns in the legend have the same width.