public interface TimeGraph
| Modifier and Type | Method and Description |
|---|---|
void |
addFunction(String name,
Function function)
Adds a new function plot to the chart.
|
void |
addTimeSeries(String name,
List<TimeDataPoint> data)
Adds a new scatter plot to the chart.
|
TimeDataPoint |
point(LocalDate x,
double y)
Creates a new 2-dimension data point object.
|
TimeDataPoint |
point(LocalDateTime x,
double y)
Creates a new 2-dimension data point object.
|
void |
setName(String name)
The name of the graph/chart.
|
void |
setXAxis(String name)
Sets the X axis parameters on the chart.
|
void |
setXAxis(String name,
LocalDate min,
LocalDate max)
Sets the X axis parameters on the chart.
|
void |
setXAxis(String name,
LocalDateTime min,
LocalDateTime max)
Sets the X axis parameters on the chart.
|
void |
setYAxis(String name)
Sets Y axis parameters on the chart.
|
void setName(String name)
name - the name of the graph/chartvoid setXAxis(String name)
name - the name of the axisvoid setXAxis(String name, LocalDate min, LocalDate max)
nulls, ibello will determine them automatically from the content.name - the name of the axismin - minimum value of the axis, can be nullmax - maximum value of the axis, can be nullvoid setXAxis(String name, LocalDateTime min, LocalDateTime max)
nulls, ibello will determine them automatically from the content.name - the name of the axismin - minimum value of the axis, can be nullmax - maximum value of the axis, can be nullvoid setYAxis(String name)
name - the name of the axisvoid addTimeSeries(String name, List<TimeDataPoint> data)
name - the name of the plotdata - the data pointsvoid addFunction(String name, Function function)
name - the name of the plotfunction - the function which should be plottedTimeDataPoint point(LocalDate x, double y)
x - the x value as a local datey - the y valueTimeDataPoint point(LocalDateTime x, double y)
x - the x value as a local date/timey - the y valueCreated by Kornél Simon, 2022