Package org.aesh.charts.layout
Class MultiPlot
java.lang.Object
org.aesh.charts.layout.MultiPlot
Stacks multiple charts vertically with an optional shared X-axis.
Each chart renders independently with its own Y-axis, but they share the same width and can share a common time axis at the bottom.
Example:
MultiPlot plot = MultiPlot.builder()
.width(80)
.build();
plot.addChart(cpuChart);
plot.addChart(memChart);
plot.addChart(latencyChart);
System.out.println(plot.render());
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MultiPlot.Builderbuilder()render()Render all charts stacked vertically with separators.voidscrollLeft(int amount) Scroll all charts left by the given amount.voidscrollRight(int amount) Scroll all charts right by the given amount.
-
Method Details
-
builder
-
addChart
-
scrollLeft
public void scrollLeft(int amount) Scroll all charts left by the given amount. -
scrollRight
public void scrollRight(int amount) Scroll all charts right by the given amount. -
render
Render all charts stacked vertically with separators.
-