![]() | 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: | DateTime axis labels drawn when series has labels | ||
|---|---|---|---|
| Product: | HTML5 JavaScript TeeChart | Reporter: | yeray alonso <yeray> |
| Component: | Axes | Assignee: | 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=16603 | ||
| Chart Series: | --- | Delphi / C++ Builder RAD IDE Version: | |
Having a series with datetime x values and labels, the horizontal axis draws datetime values instead of the labels: Chart1.legend.visible=false; var series=Chart1.addSeries(new Tee.Line(Chart1)).addRandom(200); var msecsInADay = 86400000; var today=new Date().getTime(); series.data.x=[]; for (var t=0; t<series.count(); t++) { series.data.x[t]=new Date(today + t * msecsInADay); series.data.labels[t] = 'a'; } Also note this case causes overlapping because the 'a' text is used to calculate the internal increment, but the datetime values are longer. Even forcing the "mark" or "text" labelStyle doesn't help to force showing the labels in the bottom axis: Chart1.axes.bottom.labels.labelStyle = "text"; //"mark"