Package org.aesh.charts.linechart
Class LineChart.Builder
java.lang.Object
org.aesh.charts.linechart.LineChart.Builder
- Direct Known Subclasses:
TimeSeriesChart.TimeSeriesBuilder
- Enclosing class:
- LineChart
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()height(int height) showLegend(boolean show) style(ChartStyle style) Set the chart title, rendered centered above the plot area.viewportSize(int size) Set the number of data points visible at a time.width(int width) xMax(double max) Set only the X-axis maximum, auto-range the minimum.xMin(double min) Set only the X-axis minimum, auto-range the maximum.xRange(double min, double max) Set explicit X-axis bounds, overriding auto-range (#590).xTickFormatter(Function<Double, String> formatter) Set a custom X-axis tick label formatter.yMax(double max) Set only the Y-axis maximum, auto-range the minimum.yMin(double min) Set only the Y-axis minimum, auto-range the maximum.yRange(double min, double max) Set explicit Y-axis bounds, overriding auto-range (#590).yTickFormatter(Function<Double, String> formatter) Set a custom Y-axis tick label formatter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
width
-
height
-
style
-
title
Set the chart title, rendered centered above the plot area. -
xLabel
-
yLabel
-
xScale
-
yScale
-
xTickFormatter
Set a custom X-axis tick label formatter. Maps numeric tick values to arbitrary label strings (#589). -
yTickFormatter
Set a custom Y-axis tick label formatter. Maps numeric tick values to arbitrary label strings (#589). -
xRange
Set explicit X-axis bounds, overriding auto-range (#590). -
yRange
Set explicit Y-axis bounds, overriding auto-range (#590). -
xMin
Set only the X-axis minimum, auto-range the maximum. -
xMax
Set only the X-axis maximum, auto-range the minimum. -
yMin
Set only the Y-axis minimum, auto-range the maximum. -
yMax
Set only the Y-axis maximum, auto-range the minimum. -
viewportSize
Set the number of data points visible at a time. When set, enables viewport scrolling via scrollLeft/scrollRight. Default shows all data points (#594). -
showLegend
-
build
-