![]() | 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: | Long strings in the legend | ||
|---|---|---|---|
| Product: | Java TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Legend | Assignee: | Steema Issue Manager <issuemanager> |
| Status: | CONFIRMED --- | ||
| Severity: | enhancement | ||
| Priority: | --- | ||
| Version: | 3.2015.0108 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows | ||
| URL: | http://www.teechart.net/support/viewtopic.php?f=10&t=15442 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Also added for VCL: http://bugs.teechart.net/show_bug.cgi?id=1144 And for .NET: http://bugs.teechart.net/show_bug.cgi?id=1145 |
When we have a very string in a series point/title to be shown in the legend, the legend isn't shown: Bar bar1 = new Bar(tChart1.getChart()); bar1.fillSampleValues(); for (int i=0; i<bar1.getCount(); i++) { if (i==2) //bar1.getLabels().setString(i, "This is a really really looooooooong string for the point index " + i); //bar1.getLabels().setString(i, "This is a really really looooooooong string for the point index " + i + ". This is so long because we want to test long strings in the legend"); bar1.getLabels().setString(i, "This is a really really looooooooong string for the point index " + i + ". This is so long because we want to test how the chart looks when there are long strings in the legend"); else bar1.getLabels().setString(i, "Point Index " + i); } tChart1.getLegend().setAlignment(LegendAlignment.BOTTOM); The LegendScrollBar isn't yet in Java: http://bugs.teechart.net/show_bug.cgi?id=1142 However, this tool doesn't fix it for VCL. We could add a MaxWidth property. If the legend can't be drawn within this MaxWidth, the strings could be cut (with "..." at the end), we could automatically add a LegendScrollBar (when implemented), or we could multiline the legend.