hochileo / achartengine

Automatically exported from code.google.com/p/achartengine
0 stars 0 forks source link

loops forever in public synchronized void add(double x, double y) XYSeries.class #287

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
add two data with the same time and the application will loop forever in

 public synchronized void add(double x, double y) {
    while (mXY.get(x) != null) {
      // add a very small value to x such as data points sharing the same x will
      // still be added

      x += PADDING;
    }
It seems like the PADDING is to small.

how to reproduce:
   date = new Date ();

   series.add(date, 1.0);
   series.add(date, 2.0);

Original issue reported on code.google.com by artur.do...@gmail.com on 16 Mar 2013 at 8:42

GoogleCodeExporter commented 9 years ago

Original comment by dandrome...@gmail.com on 3 Apr 2013 at 4:19