diff --git a/lib/WebGUI/Image/Graph/Pie.pm b/lib/WebGUI/Image/Graph/Pie.pm index 08433ea08..91234d5a8 100644 --- a/lib/WebGUI/Image/Graph/Pie.pm +++ b/lib/WebGUI/Image/Graph/Pie.pm @@ -55,6 +55,29 @@ sub _mod2pi { } #------------------------------------------------------------------- + +=head2 addSlice ( $properties ) + +Add 1 slice to the pie graph. + +=head3 $properties + +Properties that define the slice. + +=head4 percentage + +The percentage of the pie this slice should occupy. + +=head4 label + +A label for the slice. + +=head4 color + +The color to use to draw the slice. + +=cut + sub addSlice { my (%slice, $leftMost, $rightMost, $center, $overallStartCorner, $overallEndCorner, $fillColor, $strokeColor, $sideColor); @@ -779,9 +802,9 @@ sub drawSide { #------------------------------------------------------------------- -=head2 drawBottom ( slice ) +=head2 drawTop ( slice ) -Draws the bottom of the given pie slice. +Draws the top of the given pie slice. =head3 slice diff --git a/lib/WebGUI/Image/Graph/XYGraph.pm b/lib/WebGUI/Image/Graph/XYGraph.pm index 4a3e10895..9bb0c7f29 100644 --- a/lib/WebGUI/Image/Graph/XYGraph.pm +++ b/lib/WebGUI/Image/Graph/XYGraph.pm @@ -492,7 +492,7 @@ sub setChartOffset { #------------------------------------------------------------------- -=head2 setChartHeight ( width ) +=head2 setChartWidth ( width ) Sets the width of the chart to the specified value. diff --git a/lib/WebGUI/Image/Graph/XYGraph/Bar.pm b/lib/WebGUI/Image/Graph/XYGraph/Bar.pm index 62118e19f..32f77e965 100644 --- a/lib/WebGUI/Image/Graph/XYGraph/Bar.pm +++ b/lib/WebGUI/Image/Graph/XYGraph/Bar.pm @@ -150,7 +150,7 @@ sub drawGraph { #------------------------------------------------------------------- -=head2 drawSideBySide ( bars, location, barWidth ) +=head2 drawSideBySideBar ( bars, location, barWidth ) Draws the bars in side by side mode. Meaning that per datsetindex the bars representing a single dataset are grouped. @@ -186,7 +186,7 @@ sub drawSideBySideBar { #------------------------------------------------------------------- -=head2 drawStacked ( bars, location, barWidth ) +=head2 drawStackedBar ( bars, location, barWidth ) Draws the bars in side by side mode. Meaning that per datset-index the bars representing a single dataset are stacked on top of each other. @@ -327,7 +327,7 @@ sub getFirstAnchorLocation { #------------------------------------------------------------------- -=head2 processDataset +=head2 processDataSet Processes the dataset. Used by drawGraph. diff --git a/lib/WebGUI/Image/Graph/XYGraph/Line.pm b/lib/WebGUI/Image/Graph/XYGraph/Line.pm index 409f62b0f..79197b4f1 100644 --- a/lib/WebGUI/Image/Graph/XYGraph/Line.pm +++ b/lib/WebGUI/Image/Graph/XYGraph/Line.pm @@ -160,7 +160,7 @@ sub getFirstAnchorLocation { #------------------------------------------------------------------- -=head2 processDataset +=head2 processDataSet Processes the dataset. Used by drawGraph.