File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ module.exports = {
37
37
close : OHLCattrs . close ,
38
38
39
39
increasing : Lib . extendDeep ( { } , directionAttrs , {
40
- color : { dflt : 'green' }
40
+ color : { dflt : OHLCattrs . increasing . color . dflt }
41
41
} ) ,
42
42
43
43
decreasing : Lib . extendDeep ( { } , directionAttrs , {
44
- color : { dflt : 'red' }
44
+ color : { dflt : OHLCattrs . decreasing . color . dflt }
45
45
} ) ,
46
46
47
47
text : OHLCattrs . text ,
Original file line number Diff line number Diff line change 12
12
var Lib = require ( '../../lib' ) ;
13
13
var scatterAttrs = require ( '../scatter/attributes' ) ;
14
14
15
+ var INCREASING_COLOR = '#3D9970' ;
16
+ var DECREASING_COLOR = '#FF4136' ;
17
+
15
18
var lineAttrs = scatterAttrs . line ;
16
19
17
20
var directionAttrs = {
@@ -64,13 +67,12 @@ module.exports = {
64
67
description : 'Sets the close values.'
65
68
} ,
66
69
67
- // TODO find better colors
68
70
increasing : Lib . extendDeep ( { } , directionAttrs , {
69
- color : { dflt : 'green' }
71
+ color : { dflt : INCREASING_COLOR }
70
72
} ) ,
71
73
72
74
decreasing : Lib . extendDeep ( { } , directionAttrs , {
73
- color : { dflt : 'red' }
75
+ color : { dflt : DECREASING_COLOR }
74
76
} ) ,
75
77
76
78
text : {
You can’t perform that action at this time.
0 commit comments