aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/Report.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-12-27 20:26:21 +1300
committerGitHub <noreply@github.com>2016-12-27 20:26:21 +1300
commitecdf23611e30707f1bc5f89420f9409acaa56652 (patch)
tree2bf13878f536d0b63e2b4645b57c264a171fb078 /web/app/view/Report.js
parent082f7926b846f876613f27f21779b594e79ea0c7 (diff)
parent747c16cadc803fdf0e4de0dc331c84e29dd56e9c (diff)
downloadtrackermap-web-ecdf23611e30707f1bc5f89420f9409acaa56652.tar.gz
trackermap-web-ecdf23611e30707f1bc5f89420f9409acaa56652.tar.bz2
trackermap-web-ecdf23611e30707f1bc5f89420f9409acaa56652.zip
Merge pull request #371 from Abyss777/charts
Charts implementation
Diffstat (limited to 'web/app/view/Report.js')
-rw-r--r--web/app/view/Report.js50
1 files changed, 38 insertions, 12 deletions
diff --git a/web/app/view/Report.js b/web/app/view/Report.js
index 5851c4c3..339761e9 100644
--- a/web/app/view/Report.js
+++ b/web/app/view/Report.js
@@ -16,7 +16,7 @@
*/
Ext.define('Traccar.view.Report', {
- extend: 'Ext.grid.Panel',
+ extend: 'Ext.panel.Panel',
xtype: 'reportView',
requires: [
@@ -67,17 +67,43 @@ Ext.define('Traccar.view.Report', {
}]
},
- listeners: {
- selectionchange: 'onSelectionChange'
- },
-
- forceFit: true,
+ layout: 'card',
- columns: {
- defaults: {
- minWidth: Traccar.Style.columnWidthNormal
+ items: [{
+ xtype: 'grid',
+ itemId: 'grid',
+ listeners: {
+ selectionchange: 'onSelectionChange'
+ },
+ forceFit: true,
+ columns: {
+ defaults: {
+ minWidth: Traccar.Style.columnWidthNormal
+ },
+ items: [
+ ]
+ },
+ style: Traccar.Style.reportGridStyle
+ }, {
+ xtype: 'cartesian',
+ itemId: 'chart',
+ plugins: {
+ ptype: 'chartitemevents',
+ moveEvents: true
+ },
+ store: 'ReportRoute',
+ axes: [{
+ title: Strings.reportCharts,
+ type: 'numeric',
+ position: 'left'
+ }, {
+ type: 'time',
+ position: 'bottom',
+ fields: ['fixTime']
+ }],
+ listeners: {
+ itemclick: 'onChartMarkerClick'
},
- items: [
- ]
- }
+ insetPadding: Traccar.Style.chartPadding
+ }]
});