public interface Graph
| Modifier and Type | Method and Description |
|---|---|
default void |
add(String name,
Function function)
Adds a new function plot to the chart.
|
default void |
add(String name,
List<DataPoint> data)
Adds a new scatter plot to the chart.
|
void |
addFunction(String name,
Function function)
Adds a new function plot to the chart.
|
void |
addSeries(String name,
List<DataPoint> data)
Adds a new scatter plot to the chart.
|
DataPoint |
point(double 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,
Double min,
Double 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, Double min, Double 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 addFunction(String name, Function function)
name - the name of the plotfunction - the function which should be plotteddefault void add(String name, Function function)
name - the name of the plotfunction - the function which should be plottedvoid addSeries(String name, List<DataPoint> data)
name - the name of the plotdata - the data pointsdefault void add(String name, List<DataPoint> data)
name - the name of the plotdata - the data pointsDataPoint point(double x, double y)
x - the x valuey - the y valueCreated by Kornél Simon, 2022