Skip to content

Commit 80ee191

Browse files
Merge pull request #477 from contactashish13/issue-185-pro
Inconsistency when displaying candlechart
2 parents 11e395e + afe9085 commit 80ee191

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

classes/Visualizer/Module/Utility.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,13 @@ private static function set_defaults_google( $chart, $post_status ) {
170170
$attributes['series'][ $x ]['type'] = $types[ rand( 0, count( $types ) - 1 ) ];
171171
}
172172
break;
173+
case 'candlestick':
174+
// add stroke and fill color so that behavior is consistent.
175+
$attributes['candlestick']['fallingColor']['stroke'] = '#3366cc';
176+
$attributes['candlestick']['fallingColor']['fill'] = '#fff';
177+
$attributes['candlestick']['risingColor']['stroke'] = '#3366cc';
178+
$attributes['candlestick']['risingColor']['fill'] = '#3366cc';
179+
break;
173180
}
174181
}
175182

0 commit comments

Comments
 (0)