-
Notifications
You must be signed in to change notification settings - Fork 402
Open
Description
Describe the bug
If the box chart is given only one yData value, rendering gets stuck. When displaying the chart, the window appears blank, and the close button becomes unresponsive. Attempting to save the chart results in a broken or unreadable image file.
To Reproduce
The following sample can reproduce the bug:
public class TestForIssue834 {
public static void main(String[] args) throws ParseException {
BoxChart chart = getBoxChart();
new SwingWrapper(chart).displayChart();
}
public static BoxChart getBoxChart() {
BoxChart chart = new BoxChartBuilder()
.title("box plot demo")
.xAxisTitle("X")
.yAxisTitle("Y")
.build();
chart.addSeries("test", Arrays.asList(1));
return chart;
}
}
Expected behavior
An appropriate warning (e.g., illegal argument) should be shown, or the program should complete without crashing, even if the result is a blank image.
Metadata
Metadata
Assignees
Labels
No labels
