Re: Time Series Charts - date stamps interpreted as integers
Robin Becker <[email protected]>
| Newsgroups | gmane.comp.python.reportlab.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Kostadin, There is something called a NormalDateXValueAxis axis which we have often used for day valued axes. It tries fairly hard to get equal sized intervals, but as you know that may be hard if you have other constraints like end of month days only etc etc. There are a lot of options to try and get the ticking right. There is a sample here https://www.reportlab.com/chartgallery/line/#prettyPhoto[iframes]/3/ copy from the source link https://www.reportlab.com/chartgallery/line/LineChart03/src/ On 03/04/2017 23:02, Kostadin Atanasov wrote: > Looking for help with the following issue: > > My line plot distorts the data, as it interprets the timestamps as > integers, i.e.: > > 20170227 > 20170228 > 20170301 > > While the distance between all three is 1 day, in integer terms the picture > is different: > - the distance between 20170227 and 20170228 is 1 > - the distance between 20170228 and 20170301 is 73 > > As a result the line plot is distorted (stretched) at the points where the > month changes. ......... -- Robin Becker