File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ module.exports = {
3737 close : OHLCattrs . close ,
3838
3939 increasing : Lib . extendDeep ( { } , directionAttrs , {
40- color : { dflt : 'green' }
40+ color : { dflt : OHLCattrs . increasing . color . dflt }
4141 } ) ,
4242
4343 decreasing : Lib . extendDeep ( { } , directionAttrs , {
44- color : { dflt : 'red' }
44+ color : { dflt : OHLCattrs . decreasing . color . dflt }
4545 } ) ,
4646
4747 text : OHLCattrs . text ,
Original file line number Diff line number Diff line change 1212var Lib = require ( '../../lib' ) ;
1313var scatterAttrs = require ( '../scatter/attributes' ) ;
1414
15+ var INCREASING_COLOR = '#3D9970' ;
16+ var DECREASING_COLOR = '#FF4136' ;
17+
1518var lineAttrs = scatterAttrs . line ;
1619
1720var directionAttrs = {
@@ -64,13 +67,12 @@ module.exports = {
6467 description : 'Sets the close values.'
6568 } ,
6669
67- // TODO find better colors
6870 increasing : Lib . extendDeep ( { } , directionAttrs , {
69- color : { dflt : 'green' }
71+ color : { dflt : INCREASING_COLOR }
7072 } ) ,
7173
7274 decreasing : Lib . extendDeep ( { } , directionAttrs , {
73- color : { dflt : 'red' }
75+ color : { dflt : DECREASING_COLOR }
7476 } ) ,
7577
7678 text : {
You can’t perform that action at this time.
0 commit comments