Chart refinements
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
||||
]
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user