Class ModelBuilder.FinancialDataBuilder
java.lang.Object
com.arbergashi.charts.api.ModelBuilder.FinancialDataBuilder
- Enclosing class:
ModelBuilder
Batch builder for financial data with fluent OHLC entry.
- Since:
- 2026-01-16
- Version:
- 1.0.0
- Author:
- Arber Gashi
-
Method Details
-
create
Start building financial (OHLC) data.- Parameters:
name- Series name- Returns:
- new FinancialDataBuilder
-
bar
public ModelBuilder.FinancialDataBuilder bar(double time, double open, double high, double low, double close) Add OHLC bar.- Parameters:
time- X-axis value (timestamp or index)open- Opening pricehigh- Highest pricelow- Lowest priceclose- Closing price- Returns:
- this builder
-
bar
Add OHLC bar from domain object.- Parameters:
bar- OHLC data bar- Returns:
- this builder
-
build
Build and return the chart model.- Returns:
- configured DefaultChartModel with OHLC data
-