|
Wierd Date / margin issue on chart |
Posted by eddy glaister on Jun-24-2014 19:00 |
|
Hi there,
I am getting a very strange issue where all of my date/time labels on a line are showing as
six minutes past the hour! They should all read ON the hour (as the array of
date/times that has been assigned to the x axis only includes date/times of this nature!)
I am also getting a small margin at the start (left) of the chart - I am wondering if this has
something to do with the offsets on the date/times?
I have attached a screen print for you to see.
When adding a new layer to the chart I include the following code:
layer.setXData(masterArrayDateTimes); //an array of datetimes
layer.addDataSet(ArrayOfData, colourOfChannel, stationsName); // an array of data
matching the exact length of the masterArrayDateTimes array
The number of entries in both the masterArrayDateTimes and ArrayOfData match and all
date/dimes in the masterArrayDateTimes are "quarter of an hourly" - so I have no idea
where this six minute past on every axis point on the line is coming from!
Has some sort of offset been inadvertently set on my chart? Any pointers would be
appreciated.
I would be happy to include any code required for you to inspect.
|
Re: Wierd Date / margin issue on chart |
Posted by Peter Kwan on Jun-24-2014 22:40 |
|
Hi Eddy,
I noted that the month in your chart is Jun (06). Is it possible your tooltip is configured to
show the hour and the month (instead of the hour and the minute)? Note that in
ChartDirector, "mm" represents the month, as in "dd/mm/yyyy". The minute is "nn". So the
tooltip should use "hh:nn" instead of "hh:mm".
Hope this can help.
Regards
Peter Kwan |
Re: Wierd Date / margin issue on chart |
Posted by eddy glaister on Jun-25-2014 17:37 |
|
fixed - thanks! |
|