Package com.storedobject.svg.chart
Class MonthPlot
java.lang.Object
com.storedobject.svg.Node<LinePlot>
com.storedobject.svg.chart.Chart<LinePlot>
com.storedobject.svg.chart.LinePlot
com.storedobject.svg.chart.MonthPlot
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.storedobject.svg.chart.LinePlot
build, gridLine, setAxisColor, setGridLineColor, setLeftGap, setPlotColor, setShowGridLinesMethods inherited from class com.storedobject.svg.chart.Chart
addValue, addValue, colorize, compute, extraContent, getValues, isBuilt, setLabelName, setUnit, setValueName, tagMethods inherited from class com.storedobject.svg.Node
attributes, copy, createDocument, equals, escapeXml, flipHorizontally, flipHorizontallyAroundOrigin, flipVertically, flipVerticallyAroundOrigin, getCoordinates, getId, getMargin, getSvg, hashCode, id, ID, IDValue, innerContent, moveTo, moveTo, rotate, rotateAround, rotateAround, rotateAroundCenter, scale, scale, scaleHeightTo, scaleTo, scaleWidthTo, styles, toString, toString, transform, translate, translate
-
Constructor Details
-
MonthPlot
public MonthPlot(LocalDate startDate, double[] values, String unit, double tickStart, double tickStep, int tickCount) Constructor.- Parameters:
startDate- Starting date of the data.values- Array of values for each month.unit- Unit for the values.tickStart- Starting value for Y-axis ticks.tickStep- Step value between Y-axis ticks.tickCount- Number of ticks on the Y-axis.
-
MonthPlot
public MonthPlot(double[] values, String unit, double tickStart, double tickStep, int tickCount, LocalDate endDate) Constructor. The start date is calculated based on the end date and the number of values.- Parameters:
values- Array of values for each month.unit- Unit for the values.tickStart- Starting value for Y-axis ticks.tickStep- Step value between Y-axis ticks.tickCount- Number of ticks on the Y-axis.endDate- Ending date of the data.
-
MonthPlot
Constructor. The data ends today.- Parameters:
values- Array of values for each month.unit- Unit for the values.tickStart- Starting value for Y-axis ticks.tickStep- Step value between Y-axis ticks.tickCount- Number of ticks on the Y-axis.
-