![Very Happy :D](./images/smilies/icon_biggrin.gif)
How to change a bottom grid line interval from to one minute ?
I tried to do it, but not works.
![Confused :?](./images/smilies/icon_confused.gif)
Always thank you.
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |
Code: Select all
var Chart1;
function draw() {
Chart1=new Tee.Chart("canvas");
Chart1.addSeries(new Tee.Line().addRandom());
Chart1.series.items[0].beforeDraw = function() {
var c = Chart1.ctx;
var a = Chart1.axes.bottom;
var v = a.roundMin();
var y1 = a.bounds.y;
var y2 = Chart1.chartRect.y;
c.beginPath();
while (v <= a.maximum) {
var step = (a.increm / 3);
var i = v + step;
while (i < v + a.increm) {
if ((i > a.minimum) && (i < a.maximum)) {
var p = a.calc(i);
c.moveTo(p, y1);
c.lineTo(p, y2);
}
i += step;
}
v += a.increm;
}
a.grid.format.stroke.prepare();
a.grid.format.shadow.prepare(c);
c.stroke();
}
Chart1.draw();
}
![]() | Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) |
![]() ![]() ![]() ![]() ![]() ![]() |
Please read our Bug Fixing Policy |