Private
Public Access
1
0

Chart refinements

This commit is contained in:
Sander Roosendaal
2019-11-19 11:11:32 +01:00
parent a5e6c8bc41
commit ff06efd45d
2 changed files with 17 additions and 3 deletions

View File

@@ -2986,6 +2986,9 @@ def interactive_chart_video(videodata):
legend: {
display: false,
},
animation: {
duration: 100,
},
scales: {
yAxes: [{
scaleLabel: {
@@ -2995,6 +2998,7 @@ def interactive_chart_video(videodata):
}],
xAxes: [{
scaleLabel: {
type: 'linear',
display: true,
labelString: 'Time (seconds)'
}
@@ -3013,6 +3017,14 @@ def interactive_chart_video(videodata):
{
label: 'spm',
data: data,
backgroundColor: "#ff0000",
borderColor: "#ff0000",
fill: false,
borderDash: [0, 0],
pointRadius: 1,
pointHoverRadius: 1,
showLine: true,
tension: 0,
},
]

View File

@@ -175,9 +175,11 @@
document.getElementById("{{ id }}").innerHTML = {{ id }}_now;
{% endfor %}
// gauge.set(catch_now);
var newLatLng = new L.LatLng(lat, lon);
// console.log(newLatLng);
marker.setLatLng(newLatLng);
try {
var newLatLng = new L.LatLng(lat, lon);
// console.log(newLatLng);
marker.setLatLng(newLatLng);
} catch (e) {}
}
if(videotime !== oldTime) {
onProgress(videotime);