modules/admin-full: reverse time labels in realtime stats (#386)
This commit is contained in:
parent
7b402d1964
commit
9de7ff8e69
4 changed files with 9 additions and 9 deletions
|
@ -147,7 +147,7 @@ $Id$
|
||||||
|
|
||||||
|
|
||||||
/* plot horizontal time interval lines */
|
/* plot horizontal time interval lines */
|
||||||
for (var i = step * 60; i < width; i += step * 60)
|
for (var i = width % (step * 60); i < width; i += step * 60)
|
||||||
{
|
{
|
||||||
var line = G.createElementNS('http://www.w3.org/2000/svg', 'line');
|
var line = G.createElementNS('http://www.w3.org/2000/svg', 'line');
|
||||||
line.setAttribute('x1', i);
|
line.setAttribute('x1', i);
|
||||||
|
@ -160,7 +160,7 @@ $Id$
|
||||||
text.setAttribute('x', i + 5);
|
text.setAttribute('x', i + 5);
|
||||||
text.setAttribute('y', 15);
|
text.setAttribute('y', 15);
|
||||||
text.setAttribute('style', 'fill:#999999; font-size:9pt');
|
text.setAttribute('style', 'fill:#999999; font-size:9pt');
|
||||||
text.appendChild(G.createTextNode(Math.round(i / step / 60) + 'm'));
|
text.appendChild(G.createTextNode(Math.round((width - i) / step / 60) + 'm'));
|
||||||
|
|
||||||
label_25.parentNode.appendChild(line);
|
label_25.parentNode.appendChild(line);
|
||||||
label_25.parentNode.appendChild(text);
|
label_25.parentNode.appendChild(text);
|
||||||
|
|
|
@ -119,7 +119,7 @@ $Id$
|
||||||
|
|
||||||
|
|
||||||
/* plot horizontal time interval lines */
|
/* plot horizontal time interval lines */
|
||||||
for (var i = step * 60; i < width; i += step * 60)
|
for (var i = width % (step * 60); i < width; i += step * 60)
|
||||||
{
|
{
|
||||||
var line = G.createElementNS('http://www.w3.org/2000/svg', 'line');
|
var line = G.createElementNS('http://www.w3.org/2000/svg', 'line');
|
||||||
line.setAttribute('x1', i);
|
line.setAttribute('x1', i);
|
||||||
|
@ -132,7 +132,7 @@ $Id$
|
||||||
text.setAttribute('x', i + 5);
|
text.setAttribute('x', i + 5);
|
||||||
text.setAttribute('y', 15);
|
text.setAttribute('y', 15);
|
||||||
text.setAttribute('style', 'fill:#999999; font-size:9pt');
|
text.setAttribute('style', 'fill:#999999; font-size:9pt');
|
||||||
text.appendChild(G.createTextNode(Math.round(i / step / 60) + 'm'));
|
text.appendChild(G.createTextNode(Math.round((width - i) / step / 60) + 'm'));
|
||||||
|
|
||||||
label_25.parentNode.appendChild(line);
|
label_25.parentNode.appendChild(line);
|
||||||
label_25.parentNode.appendChild(text);
|
label_25.parentNode.appendChild(text);
|
||||||
|
|
|
@ -116,7 +116,7 @@ $Id$
|
||||||
|
|
||||||
|
|
||||||
/* plot horizontal time interval lines */
|
/* plot horizontal time interval lines */
|
||||||
for (var i = step * 60; i < width; i += step * 60)
|
for (var i = width % (step * 60); i < width; i += step * 60)
|
||||||
{
|
{
|
||||||
var line = G.createElementNS('http://www.w3.org/2000/svg', 'line');
|
var line = G.createElementNS('http://www.w3.org/2000/svg', 'line');
|
||||||
line.setAttribute('x1', i);
|
line.setAttribute('x1', i);
|
||||||
|
@ -129,7 +129,7 @@ $Id$
|
||||||
text.setAttribute('x', i + 5);
|
text.setAttribute('x', i + 5);
|
||||||
text.setAttribute('y', 15);
|
text.setAttribute('y', 15);
|
||||||
text.setAttribute('style', 'fill:#999999; font-size:9pt');
|
text.setAttribute('style', 'fill:#999999; font-size:9pt');
|
||||||
text.appendChild(G.createTextNode(Math.round(i / step / 60) + 'm'));
|
text.appendChild(G.createTextNode(Math.round((width - i) / step / 60) + 'm'));
|
||||||
|
|
||||||
label_25.parentNode.appendChild(line);
|
label_25.parentNode.appendChild(line);
|
||||||
label_25.parentNode.appendChild(text);
|
label_25.parentNode.appendChild(text);
|
||||||
|
|
|
@ -139,7 +139,7 @@ $Id$
|
||||||
|
|
||||||
|
|
||||||
/* plot horizontal time interval lines */
|
/* plot horizontal time interval lines */
|
||||||
for (var i = step * 60; i < width; i += step * 60)
|
for (var i = width % (step * 60); i < width; i += step * 60)
|
||||||
{
|
{
|
||||||
var line = G.createElementNS('http://www.w3.org/2000/svg', 'line');
|
var line = G.createElementNS('http://www.w3.org/2000/svg', 'line');
|
||||||
line.setAttribute('x1', i);
|
line.setAttribute('x1', i);
|
||||||
|
@ -152,7 +152,7 @@ $Id$
|
||||||
text.setAttribute('x', i + 5);
|
text.setAttribute('x', i + 5);
|
||||||
text.setAttribute('y', 15);
|
text.setAttribute('y', 15);
|
||||||
text.setAttribute('style', 'fill:#999999; font-size:9pt');
|
text.setAttribute('style', 'fill:#999999; font-size:9pt');
|
||||||
text.appendChild(G.createTextNode(Math.round(i / step / 60) + 'm'));
|
text.appendChild(G.createTextNode(Math.round((width - i) / step / 60) + 'm'));
|
||||||
|
|
||||||
label_25.parentNode.appendChild(line);
|
label_25.parentNode.appendChild(line);
|
||||||
label_25.parentNode.appendChild(text);
|
label_25.parentNode.appendChild(text);
|
||||||
|
@ -169,7 +169,7 @@ $Id$
|
||||||
text2.setAttribute('x', i + 5);
|
text2.setAttribute('x', i + 5);
|
||||||
text2.setAttribute('y', 15);
|
text2.setAttribute('y', 15);
|
||||||
text2.setAttribute('style', 'fill:#999999; font-size:9pt');
|
text2.setAttribute('style', 'fill:#999999; font-size:9pt');
|
||||||
text2.appendChild(G.createTextNode(Math.round(i / step / 60) + 'm'));
|
text2.appendChild(G.createTextNode(Math.round((width - i) / step / 60) + 'm'));
|
||||||
|
|
||||||
label_25_2.parentNode.appendChild(line2);
|
label_25_2.parentNode.appendChild(line2);
|
||||||
label_25_2.parentNode.appendChild(text2);
|
label_25_2.parentNode.appendChild(text2);
|
||||||
|
|
Loading…
Reference in a new issue