Yes, you can create dates based on Unix Epoch time. The javascript date
constructor accepts the number of milliseconds since 00:00:00 GMT, January
1, 1970 as an argument, so you could multiply your seconds by 1000 and use
that in the date constructor, eg:
// enter 793947600 * 1000
new Date(793947600000); // 05:00:00 GMT, February 28, 1995
On Monday, August 5, 2013 6:39:21 PM UTC-4, Luke Skywalk wrote:
>
> $ctime
>
> Returns total number of seconds elapsed since 00:00:00 GMT, January 1,
> 1970 based on your system time.
> ex: 793947600
>
> On Monday, August 5, 2013 6:37:18 PM UTC-4, asgallant wrote:
>>
>> What do you mean by $tick?
>>
>> On Monday, August 5, 2013 6:25:59 PM UTC-4, Luke Skywalk wrote:
>>>
>>> is there a way to use my $tick ? with that new date? or how to give it
>>> more space?
>>>
>>> On Monday, August 5, 2013 5:43:00 PM UTC-4, asgallant wrote:
>>>>
>>>> You can change the colors of the data series by using either the
>>>> "colors" or the series.<series index>.color options. Colors are set by
>>>> using HTML color strings:
>>>>
>>>> colors: ['red', 'maroon', '#338067', '#FC53D2']
>>>>
>>>> or:
>>>>
>>>> series: {
>>>> 0: {
>>>> color: 'red'
>>>> },
>>>> 1: {
>>>> color: 'maroon'
>>>> },
>>>> 2: {
>>>> color: '#338067'
>>>> },
>>>> 3: {
>>>> color: '#FC53D2'
>>>> }
>>>> }
>>>>
>>>> As far as the x-axis labels go, your times are being entered as
>>>> strings, and you aren't giving them sufficient space to draw, so the API
>>>> is
>>>> cutting them off. If you switch to a "date", "datetime", or "timeofday"
>>>> type axis, you will have fewer axis labels, but they will be drawn fully:
>>>>
>>>> var data = google.visualization.arrayToDataTable([
>>>>
>>>> ['Time', 'MACD', 'Signal', 'Dif'],
>>>> [new Date(2013, 7, 5, 16, 52, 56), 0.147344, 0.085812, 0.061532],
>>>>
>>>> //...
>>>>
>>>> ]);
>>>>
>>>>
>>>> On Monday, August 5, 2013 5:27:37 PM UTC-4, Luke Skywalk wrote:
>>>>>
>>>>> Also why is my time on the x axis hidden with ..., i dont want that,
>>>>> it has something to do with the fact that i have dual y-axis because the
>>>>> legend is on top.
>>>>>
>>>>
--
You received this message because you are subscribed to the Google Groups
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.