Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 775

Summary: DateTime type series chart not align.
Product: Java TeeChart Reporter: Saman <saman>
Component: AndroidAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED WORKSFORME    
Severity: enhancement CC: sandra
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: Tablet   
OS: Android   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: Sample project

Description Saman 2014-05-19 09:43:39 EDT
Created attachment 208 [details]
Sample project

Hi,

When you use DateTime as chart X axis, the graph is not align properly. It always shifts to right.
Please check the sample project attached.
Project was created in Eclipse.

Thanks
Saman

Full version of TeeChartJavaAndroid_3.2013.1219
Android 4.0.3
Eclipse Version: Juno Service Release 2 Build id: 20130225-0426
Comment 1 sandra pazos 2014-06-04 03:58:17 EDT
*** Bug 776 has been marked as a duplicate of this bug. ***
Comment 2 Saman 2014-06-04 06:52:06 EDT
(In reply to sandra pazos from comment #1)
> *** Bug 776 has been marked as a duplicate of this bug. ***

Hi,

I manage to solve this issue. This is due to time zone.
when adding datetime you need to change the datetime to GMT for it to work, 
as follows.

dt.setTimeZone(TimeZone.getTimeZone("GMT"))
series.add(dt, 1);

Thanks
Saman
Comment 3 sandra pazos 2014-06-04 10:21:24 EDT
Hello Saman, 

Many thanks for your information; this will be very useful for other customers with the same problem. 

Thanks in advance,