Skip to content

Commit

Permalink
make Sparklines red
Browse files Browse the repository at this point in the history
  • Loading branch information
Findus23 committed Nov 13, 2017
1 parent e1a34a4 commit 43ee41b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
5 changes: 2 additions & 3 deletions core/Visualization/Sparkline.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,10 @@ private function setSparklineColors($sparkline) {
if (empty($colors)) { // quick fix so row evolution sparklines will have color in widgetize's iframes
$colors = array(
'backgroundColor' => '#ffffff',
'lineColor' => '#1388db',
'lineColor' => '#d4291f',
'minPointColor' => '#ff7f7f',
'lastPointColor' => '#55AAFF',
'maxPointColor' => '#75BF7C',
'fillColor' => '#e6f2fa'
'fillColor' => '#fce8e7'
);
}

Expand Down
2 changes: 1 addition & 1 deletion plugins/CoreHome/javascripts/sparkline.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

(function ($) {

var sparklineColorNames = ['backgroundColor', 'lineColor', 'minPointColor', 'maxPointColor', 'lastPointColor', 'fillColor'];
var sparklineColorNames = ['backgroundColor', 'lineColor', 'minPointColor', 'maxPointColor', 'fillColor'];

var sparklineDisplayHeight = 25;
var sparklineDisplayWidth = 100;
Expand Down
8 changes: 2 additions & 6 deletions plugins/CoreHome/stylesheets/sparklineColors.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,17 @@
}

.sparkline-colors[data-name=lineColor] {
color: #1388db;
color: @graph-colors-data-series1;
}

.sparkline-colors[data-name=minPointColor] {
color: #ff7f7f;
}

.sparkline-colors[data-name=lastPointColor] {
color: #55AAFF;
}

.sparkline-colors[data-name=maxPointColor] {
color: #75BF7C;
}

.sparkline-colors[data-name=fillColor] {
color: #e6f2fa;
color: lighten(@graph-colors-data-series1, 47);
}

0 comments on commit 43ee41b

Please sign in to comment.