From 26cefb8a056e1cf1c8c0cc1b4f640e143304b8d4 Mon Sep 17 00:00:00 2001 From: johannnes Date: Sun, 12 Jan 2014 14:32:43 +0000 Subject: [PATCH] chartingfrontend: fixing fill behaviour git-svn-id: https://svn.fhem.de/fhem/trunk@4632 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/www/frontend/controls_frontend.txt | 2 +- .../frontend/www/frontend/app/controller/ChartController.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fhem/www/frontend/controls_frontend.txt b/fhem/www/frontend/controls_frontend.txt index 92ed105aa..b4b0b6264 100644 --- a/fhem/www/frontend/controls_frontend.txt +++ b/fhem/www/frontend/controls_frontend.txt @@ -282,7 +282,7 @@ UPD 2014-01-12_12:09:17 5144 www/frontend/app/view/StatusPanel.js UPD 2014-01-12_12:55:22 10486 www/frontend/app/view/Viewport.js UPD 2014-01-12_02:42:27 21844 www/frontend/app/controller/MainController.js UPD 2014-01-12_02:49:58 16562 www/frontend/app/controller/StatusController.js -UPD 2014-01-12_02:51:54 109250 www/frontend/app/controller/ChartController.js +UPD 2014-01-12_03:28:35 109269 www/frontend/app/controller/ChartController.js UPD 2013-06-30_11:46:54 5415 www/frontend/app/controller/TableDataController.js UPD 2013-04-01_07:04:35 202 www/frontend/app/model/ReadingsModel.js UPD 2013-04-01_07:04:36 338 www/frontend/app/model/SavedChartsModel.js diff --git a/fhem/www/frontend/www/frontend/app/controller/ChartController.js b/fhem/www/frontend/www/frontend/app/controller/ChartController.js index 2896e0b01..d10bda0da 100644 --- a/fhem/www/frontend/www/frontend/app/controller/ChartController.js +++ b/fhem/www/frontend/www/frontend/app/controller/ChartController.js @@ -1207,7 +1207,7 @@ Ext.define('FHEM.controller.ChartController', { axis.fields.push(yfield); chart.surface.addGradient({ - id: 'gradientId', + id: 'gradient' + yfield, angle: 90, stops: { 10: { @@ -1234,7 +1234,7 @@ Ext.define('FHEM.controller.ChartController', { fill: (styleConfig.yaxisfillcheck === "false" || styleConfig.yaxisfillcheck === false) ? false : true, style: { // fill: '#' + styleConfig.fillcolorhexcode, - fill: 'url(#gradientId)', + fill: 'url(#gradient' + yfield + ')', opacity: styleConfig.fillopacity, stroke: '#' + styleConfig.linecolorhexcode, 'stroke-width': styleConfig.linestrokewidth