diff options
author | Abyss777 <abyss@fox5.ru> | 2016-12-26 18:06:48 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-12-26 18:06:48 +0500 |
commit | 557ffa7f106e44a09a99746dcd8e4f369ea4730d (patch) | |
tree | bd58f402c90d0f930d6cb13867c8be4738ebdd69 /web/app/view/Report.js | |
parent | 082f7926b846f876613f27f21779b594e79ea0c7 (diff) | |
download | etbsa-traccar-web-557ffa7f106e44a09a99746dcd8e4f369ea4730d.tar.gz etbsa-traccar-web-557ffa7f106e44a09a99746dcd8e4f369ea4730d.tar.bz2 etbsa-traccar-web-557ffa7f106e44a09a99746dcd8e4f369ea4730d.zip |
Charts implementation
Diffstat (limited to 'web/app/view/Report.js')
-rw-r--r-- | web/app/view/Report.js | 55 |
1 files changed, 44 insertions, 11 deletions
diff --git a/web/app/view/Report.js b/web/app/view/Report.js index 5851c4c..bc78fe0 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,50 @@ Ext.define('Traccar.view.Report', { }] }, - listeners: { - selectionchange: 'onSelectionChange' + layout: { + type: 'fit' }, - forceFit: true, - - columns: { - defaults: { - minWidth: Traccar.Style.columnWidthNormal + items: [{ + xtype: 'grid', + itemId: 'grid', + listeners: { + selectionchange: 'onSelectionChange' + }, + hidden: true, + forceFit: true, + flex: 1, + columns: { + defaults: { + minWidth: Traccar.Style.columnWidthNormal + }, + items: [ + ] + }, + style: 'borderTop: 1px solid lightgray' + }, { + xtype: 'cartesian', + itemId: 'chart', + plugins: { + ptype: 'chartitemevents', + moveEvents: true + }, + hidden: true, + forceFit: true, + flex: 1, + store: 'ReportRoute', + axes: [{ + title: Strings.reportCharts, + type: 'numeric', + position: 'left' + }, { + type: 'time', + position: 'bottom', + fields: ['fixTime'] + }], + listeners: { + itemclick: 'onChartMarkerClick' }, - items: [ - ] - } + insetPadding: Traccar.Style.chartPadding + }] }); |