@@ -0,0 +1,1001 @@
+package org.knowm.xchart.regressiontests;%0A%0Aimport org.junit.Test;%0Aimport org.knowm.xchart.BitmapEncoder;%0Aimport org.knowm.xchart.XYChart;%0Aimport org.knowm.xchart.XYSeries;%0Aimport org.knowm.xchart.style.markers.SeriesMarkers;%0A%0Aimport java.util.Arrays;%0Aimport java.util.List;%0Aimport java.util.stream.Collectors;%0A%0Aimport static java.lang.Double.NaN;%0A%0A/**%0A * Regression test for %3Ca href=%22https://github.com/knowm/XChart/issues/536%22%3E issue 536%3C/a%3E.%0A */%0Apublic class RegressionTestIssue536 %7B%0A%0A    @Test%0A    public void issue546RegressionTest() throws Exception %7B%0A        XYChart chart = new XYChart(800, 600);%0A%0A        List%3C? extends Number%3E times = Arrays.asList(1L, 2L, 3L);%0A        List%3C? extends Number%3E values = times.stream().mapToDouble(x -%3E NaN).boxed().collect(Collectors.toList());%0A        XYSeries series = chart.addSeries(%22Series%22, times, values);%0A        series.setMarker(SeriesMarkers.NONE);%0A%0A        byte%5B%5D bytes = BitmapEncoder.getBitmapBytes(chart, BitmapEncoder.BitmapFormat.PNG);%0A    %7D%0A%7D%0A

Add regression test for issue #536.