diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-27 20:26:21 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-27 20:26:21 +1300 |
commit | ecdf23611e30707f1bc5f89420f9409acaa56652 (patch) | |
tree | 2bf13878f536d0b63e2b4645b57c264a171fb078 /web/app/view/Report.js | |
parent | 082f7926b846f876613f27f21779b594e79ea0c7 (diff) | |
parent | 747c16cadc803fdf0e4de0dc331c84e29dd56e9c (diff) | |
download | trackermap-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.js | 50 |
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 + }] }); |