When there is no data on the graph the time/date scale is not visible.
Is there a way to show the time scale also when there is no data on the graph?
time date scale on graph with no data
Re: time date scale on graph with no data
Hello,
In TeeChart HTML5/Javascript, a Chart needs a series with at least one value to draw the axes. But it can be a null point. Ie:
In TeeChart HTML5/Javascript, a Chart needs a series with at least one value to draw the axes. But it can be a null point. Ie:
Code: Select all
Chart1=new Tee.Chart("canvas1");
Chart1.legend.visible=false;
Chart1.addSeries(new Tee.PointXY([null]));//.addRandom(1);
Chart1.axes.left.setMinMax(0, 100);
Chart1.axes.bottom.setMinMax(0, 100);
Chart1.draw();
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Re: time date scale on graph with no data
This is not working well, when i add null series the format of my bottom axess is not Date/Time as I set it and it shows number.
In this specific chart I have only one Gant serie.
What I did to resolve the problem is add null point
mySer.add(null, null, startTime, startTime)
Thanks,
Amos
In this specific chart I have only one Gant serie.
What I did to resolve the problem is add null point
mySer.add(null, null, startTime, startTime)
Thanks,
Amos
Re: time date scale on graph with no data
Hi Amos,
I'm glad to hear you found how to achieve it though!
Sorry, I missed the DateTime part.samos wrote:This is not working well, when i add null series the format of my bottom axess is not Date/Time as I set it and it shows number.
In this specific chart I have only one Gant serie.
What I did to resolve the problem is add null point
mySer.add(null, null, startTime, startTime)
I'm glad to hear you found how to achieve it though!
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |