Skip to content

Commit

Permalink
Merge pull request openwebwork#29 from paultpearson/patch-1
Browse files Browse the repository at this point in the history
Fix x-axis label position (hopefully)
  • Loading branch information
mgage committed Aug 30, 2012
2 parents 155f402 + 9819a6a commit a7ca071
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/WeBWorK/ContentGenerator/Instructor/Stats.pm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
################################################################################
# WeBWorK Online Homework Delivery System
# Copyright © 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
# Copyright 2000-2007 The WeBWorK Project, http://openwebwork.sf.net/
# $CVSHeader: webwork2/lib/WeBWorK/ContentGenerator/Instructor/Stats.pm,v 1.68 2007/08/13 22:59:56 sh002i Exp $
#
# This program is free software; you can redistribute it and/or modify it under
Expand Down Expand Up @@ -561,7 +561,7 @@ foreach my $probID (@problemIDs) {
$barypixel = $topmargin + $plotwindowheight - $barheight;
$problabelxpixel = $leftmargin + ($probID-1) * $totalbarwidth + $barsep;
$problabelypixel = $topmargin + $plotwindowheight - $barheight;
$svg = $svg . "<a xlink:href=\"". $linkstring ."\" target=\"_blank\"><rect id=\"bar". $probID ."\" x=\"". $barxpixel ."\" y=\"". $barypixel ."\" width=\"". $barwidth ."\" height=\"". $barheight ."\" fill=\"rgb(0,153,198)\" /><text id=\"problem". $probID ."\" x=\"". $barxpixel ."\" y=\"". $barypixel ."\" font-family=\"sans-serif\" font-size=\"12\" fill=\"black\" text-anchor=\"middle\">". $probID ."</text></a>\n";
$svg = $svg . "<a xlink:href=\"". $linkstring ."\" target=\"_blank\"><rect id=\"bar". $probID ."\" x=\"". $barxpixel ."\" y=\"". $barypixel ."\" width=\"". $barwidth ."\" height=\"". $barheight ."\" fill=\"rgb(0,153,198)\" /><text id=\"problem". $probID ."\" x=\"". $problabelxpixel ."\" y=\"". $problabelypixel ."\" font-family=\"sans-serif\" font-size=\"12\" fill=\"black\" text-anchor=\"middle\">". $probID ."</text></a>\n";
}

$svg = $svg . "</svg>";
Expand Down

0 comments on commit a7ca071

Please sign in to comment.