Skip to content

Commit

Permalink
Fix x-axis label position (hopefully)
Browse files Browse the repository at this point in the history
Changed the location of text id=problem... from x=$barxpixel y=$barypixel to x=$problemlabelxpixel y=$problemlabelypixel
  • Loading branch information
paultpearson committed Aug 30, 2012
1 parent 155f402 commit 9819a6a
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 9819a6a

Please sign in to comment.