Class GraphUtils
java.lang.Object
org.pentaho.reporting.libraries.libsparklines.util.GraphUtils
A utility class that computes the scale factor for a given number array to scale the numbers into a predefined
height.
- Version:
- $Revision: 1.3 $ $Date: 2007-01-15 04:49:21 $
- Author:
- Larry Ogrodnek <larry@cheesesteak.net>
-
Method Summary
Modifier and TypeMethodDescriptionstatic float
static float
getDivisor
(Number[] data, int height) Computes the scale factor to scale the given numeric data into the target height.
-
Method Details
-
getDivisor
Computes the scale factor to scale the given numeric data into the target height.- Parameters:
data
- the numeric data.height
- the target height of the graph.- Returns:
- the scale factor.
-
getAxe
-