Chart refinements
This commit is contained in:
@@ -2986,6 +2986,9 @@ def interactive_chart_video(videodata):
|
|||||||
legend: {
|
legend: {
|
||||||
display: false,
|
display: false,
|
||||||
},
|
},
|
||||||
|
animation: {
|
||||||
|
duration: 100,
|
||||||
|
},
|
||||||
scales: {
|
scales: {
|
||||||
yAxes: [{
|
yAxes: [{
|
||||||
scaleLabel: {
|
scaleLabel: {
|
||||||
@@ -2995,6 +2998,7 @@ def interactive_chart_video(videodata):
|
|||||||
}],
|
}],
|
||||||
xAxes: [{
|
xAxes: [{
|
||||||
scaleLabel: {
|
scaleLabel: {
|
||||||
|
type: 'linear',
|
||||||
display: true,
|
display: true,
|
||||||
labelString: 'Time (seconds)'
|
labelString: 'Time (seconds)'
|
||||||
}
|
}
|
||||||
@@ -3013,6 +3017,14 @@ def interactive_chart_video(videodata):
|
|||||||
{
|
{
|
||||||
label: 'spm',
|
label: 'spm',
|
||||||
data: data,
|
data: data,
|
||||||
|
backgroundColor: "#ff0000",
|
||||||
|
borderColor: "#ff0000",
|
||||||
|
fill: false,
|
||||||
|
borderDash: [0, 0],
|
||||||
|
pointRadius: 1,
|
||||||
|
pointHoverRadius: 1,
|
||||||
|
showLine: true,
|
||||||
|
tension: 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -175,9 +175,11 @@
|
|||||||
document.getElementById("{{ id }}").innerHTML = {{ id }}_now;
|
document.getElementById("{{ id }}").innerHTML = {{ id }}_now;
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
// gauge.set(catch_now);
|
// gauge.set(catch_now);
|
||||||
var newLatLng = new L.LatLng(lat, lon);
|
try {
|
||||||
// console.log(newLatLng);
|
var newLatLng = new L.LatLng(lat, lon);
|
||||||
marker.setLatLng(newLatLng);
|
// console.log(newLatLng);
|
||||||
|
marker.setLatLng(newLatLng);
|
||||||
|
} catch (e) {}
|
||||||
}
|
}
|
||||||
if(videotime !== oldTime) {
|
if(videotime !== oldTime) {
|
||||||
onProgress(videotime);
|
onProgress(videotime);
|
||||||
|
|||||||
Reference in New Issue
Block a user