timmolter/XChart — pull request #63 by nroduit (2014-03-21 21:27:18+00:00)
Title: Reset axis when replacing data. Allow to change the marker size for a

I made some modifications to allow data change without rebuilding everything:
Series series = chart.getSeriesMap().get("Sample");
if (series == null) {
series = chart.addSeries("Sample", xdata, ydata);
} else {
series.replaceXData(xdata);
series.replaceYData(ydata);
chart.resetXAxisRange();
chart.resetYAxisRange();
}

and also add the possibility to change dynamically the size of the series marker.