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.