Class ModelBuilder.StatisticalDataBuilder
java.lang.Object
com.arbergashi.charts.api.ModelBuilder.StatisticalDataBuilder
- Enclosing class:
ModelBuilder
Batch builder for statistical data with error bars.
- Since:
- 2026-01-16
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build and return the chart model.Start building statistical data with error bars.point(double x, double y, double error) Add point with symmetric error bars.point(double x, double y, double errorLow, double errorHigh) Add point with asymmetric error bars.point(ErrorBarPoint point) Add point from domain object.
-
Method Details
-
create
Start building statistical data with error bars.- Parameters:
name- Series name- Returns:
- new StatisticalDataBuilder
-
point
Add point with symmetric error bars.- Parameters:
x- X-axis valuey- Y-axis value (mean)error- Symmetric error margin (±)- Returns:
- this builder
-
point
public ModelBuilder.StatisticalDataBuilder point(double x, double y, double errorLow, double errorHigh) Add point with asymmetric error bars.- Parameters:
x- X-axis valuey- Y-axis value (mean)errorLow- Lower bounderrorHigh- Upper bound- Returns:
- this builder
-
point
Add point from domain object.- Parameters:
point- Error bar data point- Returns:
- this builder
-
build
Build and return the chart model.- Returns:
- configured DefaultChartModel with error bar data
-