Commit ed30c99e authored by Vladislav Rykov's avatar Vladislav Rykov
Browse files

dev data datetime x-axis display fixed

parent 948d734a
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
var data_{{ k }} = google.visualization.arrayToDataTable([ var data_{{ k }} = google.visualization.arrayToDataTable([
['Time', '{{ k }}'], ['Time', '{{ k }}'],
{% for d in data|reverse %} {% for d in data|reverse %}
['{{ d[1] }}', {{ d[2][k] }}], [new Date({{ d[0] }}*1000), {{ d[2][k] }}],
{% endfor %} {% endfor %}
]); ]);
...@@ -119,7 +119,7 @@ ...@@ -119,7 +119,7 @@
title: '{{ devname}} > {{ k }}', title: '{{ devname}} > {{ k }}',
curveType: 'function', curveType: 'function',
hAxis: { hAxis: {
format: 'dd/MM/yy hh:mm:ss' format: 'dd/MM/yy hh:mm:ss',
}, },
vAxis: { vAxis: {
format: 'decimal', format: 'decimal',
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment