diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-11-28 13:46:54 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2017-11-28 13:46:54 +0300 |
commit | c51c8068dc0bad7dfb7c4d33ab6c560f6e804874 (patch) | |
tree | 115daf29dcc2521848dcd6e7e1b5c14e464f1a5b /interface/js/app/graph.js | |
parent | afbdb46486b938645dec4475644c5974a74acbd6 (diff) | |
download | rspamd-c51c8068dc0bad7dfb7c4d33ab6c560f6e804874.tar.gz rspamd-c51c8068dc0bad7dfb7c4d33ab6c560f6e804874.zip |
[WebUI] Update D3Evolution 1.0.0 -> 1.1.0
+ Add logarithmic vertical scale
Diffstat (limited to 'interface/js/app/graph.js')
-rw-r--r-- | interface/js/app/graph.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/interface/js/app/graph.js b/interface/js/app/graph.js index c082e6a3c..bc5802995 100644 --- a/interface/js/app/graph.js +++ b/interface/js/app/graph.js @@ -90,10 +90,14 @@ function($, D3Evolution, unused) { function initGraph() { var graph = new D3Evolution("graph", $.extend({}, graph_options, { + yScale: getSelector("selYScale"), type: getSelector("selType"), interpolate: getSelector("selInterpolate"), convert: getSelector("selConvert"), })); + $("#selYScale").change(function() { + graph.yScale(this.value); + }); $("#selConvert").change(function () { graph.convert(this.value); }); |