datetime X Axis labels are overlaps.
Posted: Wed Jun 07, 2017 2:01 pm
Hi,
There is a problem with the drawing of a datetime X Axis when the first visible series has labels.
The calculation for the steps to draw the X Axis labels is based on the series label instead of the X Axes.
To recreate the problem,
I modify the datetime.htm from TeeChart_for_JavaScript_Commercial_v2017.04.26.1.9\demos\sources
And add a simple line
series.data.labels[t] = 'a';
In the code:
the calculation of the labels size now will base on the label value, in this case 'a' and will be too small to display the date.
Please provide a fix or workaround for this.
Thanks
Amos
There is a problem with the drawing of a datetime X Axis when the first visible series has labels.
The calculation for the steps to draw the X Axis labels is based on the series label instead of the X Axes.
To recreate the problem,
I modify the datetime.htm from TeeChart_for_JavaScript_Commercial_v2017.04.26.1.9\demos\sources
And add a simple line
series.data.labels[t] = 'a';
In the code:
Code: Select all
for (var t=0; t<100; t++) {
series.data.values[t]=Math.random()*1000;
series.data.x[t]=new Date(today + t * msecsInADay);
series.data.labels[t] = 'a'; // this is the added line
}
Please provide a fix or workaround for this.
Thanks
Amos