Package com.storedobject.svg.chart
Class Chart
java.lang.Object
com.storedobject.svg.Svg
com.storedobject.svg.chart.Chart
-
Nested Class Summary
Nested classes/interfaces inherited from class com.storedobject.svg.Svg
Svg.Anchor, Svg.Margin, Svg.Mover, Svg.Scale, Svg.ScaleTo -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddValue(Values.Value value) Add a data value.voidAdd a data value with a label.voidbuild()Build the chart.voidcolorize()Automatically assign colors to data points.Get the data values.final booleanisBuilt()Check if the chart is built.voidsetLabelName(String labelName) Set the label name (typically used as X-axis name).voidSet the unit for values.voidsetValueName(String valueName) Set the value name (typically used as Y-axis name).Methods inherited from class com.storedobject.svg.Svg
add, add, add, escapeXml, flipHorizontally, flipVertically, getFilledSvg, getHeight, getScaledSvg, getSvg, getWidth, getX, getY, margin, margin, scale, scale, scaleTo, scaleToHeight, scaleToWidth, toString
-
Field Details
-
values
Data values of the chart.
-
-
Constructor Details
-
Chart
-
-
Method Details
-
getValues
-
addValue
-
addValue
Add a data value with a label.- Parameters:
label- The label for the value.value- The value.
-
setLabelName
Set the label name (typically used as X-axis name).- Parameters:
labelName- Label name.
-
setValueName
Set the value name (typically used as Y-axis name).- Parameters:
valueName- Value name.
-
setUnit
-
colorize
public void colorize()Automatically assign colors to data points. -
build
-
isBuilt
-