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 1878 - DateTime axis labels drawn when series has labels
Summary: DateTime axis labels drawn when series has labels
Status: CONFIRMED
Alias: None
Product: HTML5 JavaScript TeeChart
Classification: Unclassified
Component: Axes (show other bugs)
Version: unspecified
Hardware: PC Windows
: --- enhancement
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-08 05:42 EDT by yeray alonso
Modified: 2017-06-08 05:42 EDT (History)
0 users

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description yeray alonso 2017-06-08 05:42:30 EDT
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"