Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
Patch attached. I hope it's in the right format...
Original comment by pep...@dvelop.nl
on 27 Aug 2013 at 12:13
Attachments:
i'm using DATETIME type Axis in my project, and it works just fine with Points
in PointSeries.
To add Date value in x Axis i'm using such code:
Date someDate = new Date();
Point point = new Point(someDate.getTime(), 100);
With Date.getTime() you'll get timestamp and your chart will be rendered
correct (for example with gaps on days that are not added to series).
Original comment by bartlomiej.lopatka
on 30 Aug 2013 at 5:17
You're right, that seems to work too :) Thanks for the tip.
It still think however this change would make life easier in some cases,
allowing all types of values for X and Y and adding a constructor to provide
the X value.
Original comment by pep...@dvelop.nl
on 30 Aug 2013 at 10:18
Thanks for the patch! I will have a look at it for the next release. Since it
would break the API, I would probably create a new class "GenericPoint<X,Y>"
instead of adding the generic types to the existing Point class.
Original comment by tom.homb...@gmail.com
on 30 Aug 2013 at 6:09
moved issue to github at https://github.com/thombergs/wicked-charts/issues/15
Original comment by tom.homb...@gmail.com
on 21 Apr 2014 at 11:52
Original issue reported on code.google.com by
pep...@dvelop.nl
on 27 Aug 2013 at 11:11Attachments: