- Added support for filtering location data in a certain area. - Made date range selection optional. - A more robust way to detect changes in the location filter. - Let the timeline graph set the default time ticks.
This commit is contained in:
parent
35821dbccd
commit
282828df0b
15 changed files with 603 additions and 100 deletions
frontend/src/components
|
@ -210,6 +210,12 @@ export default {
|
|||
}
|
||||
}
|
||||
|
||||
const xTicks = {} as { min?: Date, max?: Date }
|
||||
if (this.points.length > 1) {
|
||||
xTicks.min = this.points[0].timestamp
|
||||
xTicks.max = this.points[this.points.length - 1].timestamp
|
||||
}
|
||||
|
||||
return {
|
||||
responsive: true,
|
||||
maintainAspectRatio: false,
|
||||
|
@ -245,9 +251,9 @@ export default {
|
|||
drawTicks: true,
|
||||
},
|
||||
time: {
|
||||
tooltipFormat: 'MMM dd, HH:mm',
|
||||
unit: 'minute',
|
||||
tooltipFormat: 'MMM dd yyyy, HH:mm',
|
||||
},
|
||||
ticks: xTicks,
|
||||
title: {
|
||||
display: true,
|
||||
text: 'Date'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue