Skip to content

Commit

Permalink
Fix chart horizontal alignment bug: dates never aligned, and there wa…
Browse files Browse the repository at this point in the history
…s always whitespace to the right.
  • Loading branch information
peterdey committed Dec 13, 2013
1 parent 2b5cdc8 commit 7de7d15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internode.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ function display_history() {

// Calculate bar width.
//
$dx = ( IMAGE_WIDTH - IMAGE_BORDER * 2 ) / (count($this->history)+1);
$dx = $g_width / count($this->history);

// Find scale maximum.
//
Expand Down Expand Up @@ -466,7 +466,7 @@ function display_history() {
//
$mod = intval(count($this->history)/8);

$dlx = ( IMAGE_WIDTH - IMAGE_BORDER * 2 ) / (count($this->history)+1);
$dlx = ( $g_width - IMAGE_BORDER * 2 ) / (count($this->history));

for($i = 0; $i < count($this->history); $i++)
if($i % $mod == 0)
Expand Down

0 comments on commit 7de7d15

Please sign in to comment.