Skip to content

Commit

Permalink
Add y_position option. #1424
Browse files Browse the repository at this point in the history
  • Loading branch information
pippinsplugins committed Dec 9, 2013
1 parent 15aace8 commit 37d985d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion includes/admin/reporting/class-edd-graph.php
Expand Up @@ -74,6 +74,7 @@ public function __construct( $_data ) {
'x_mode' => null,
'y_decimals' => 0,
'x_decimals' => 0,
'y_position' => 'right',
'time_format' => '%d/%b',
'ticksize_unit' => 'day',
'ticksize_num' => 1,
Expand Down Expand Up @@ -115,7 +116,7 @@ public function build_graph() {
bars: {
show: <?php echo $this->options['bars'] ? 'true' : 'false'; ?>,
barWidth: 12,
horizontal: false
aling: 'center'
},
lines: {
show: <?php echo $this->options['lines'] ? 'true' : 'false'; ?>
Expand Down Expand Up @@ -147,6 +148,7 @@ public function build_graph() {
<?php endif; ?>
},
yaxis: {
position: 'right',
min: 0,
mode: "<?php echo $this->options['y_mode']; ?>",
timeFormat: "<?php echo $this->options['y_mode'] == 'time' ? $this->options['time_format'] : ''; ?>",
Expand Down

0 comments on commit 37d985d

Please sign in to comment.