Hi David,

Ohhh, Timeplot, err um, hmmm....

Timelplot is above my paygrade...

My 2 cents worth:
1) Try doing everything (your data's dates) in UTC/GMT. My guess is that it 
will all work fine.
2) If you want to use Central Europe timezone (+1), that's fine, but you'll 
need to debug the problem. Since it works in Timeline, the problem is in 
Timeplot, not the underlying Simile-Ajax lib.
Timeline handles Timezone issues by having the timezone specified as part of 
the object creation, and then using it. If you don't track the timezone, then 
you can end up with funky problems like the one you're receiving.
Remember that the browser's timezone can vary widely. -- And it is not always 
set correctly--there are plenty of people who change their computer's time 
instead of the timezone.
But since you control your data, you should know the correct timezone for the 
data. And if your data doesn't have a timezone per se, then I strongly 
recommend explicitly using UTC/GMT in such cases.


The trunk version of Timeline now includes a timezone test example courtesy of 
David H. You can use it as a model for testing out timezones in Timeplot.

Thanks for your help,

Larry




________________________________
From: David Welton <[email protected]>
To: [email protected]
Sent: Friday, March 27, 2009 11:26:35 AM
Subject: Re: year oddness


> Welcome to Timeline!

Thanks... I've actually posted before though.  I have a hacky attempt
at making these widgets work standalone here:

http://github.com/davidw/standalone-timeplot/tree/master

> Please set the timezone in your band creation call to 1 and let us know if
> that fixes things.
>
> eg
>                 Timeline.createBandInfo({
>                     width:          "10%",
>                     intervalUnit:   Timeline.DateTime.DECADE,
>                     intervalPixels: 200,
>                     date:           d,
>                     theme:          theme,
>                     timeZone : 1
>                 }),

Here's how I'm creating things (it's actually a timeplot):


        Timeplot.createPlotInfo({
        id: "plot" + col,
        dataSource: new Timeplot.ColumnSource(eventSource, col),
        valueGeometry: new Timeplot.DefaultValueGeometry({
            gridColor: "#000000",
            axisLabelsPlacement: "left",
            min: 0,
            max: 100
        }),
        lineColor: color,
        timeGeometry: new Timeplot.DefaultTimeGeometry({
            gridColor: "#000000",
            axisLabelsPlacement: "top"
        })
        }));

Where should I put the timezone?

Thank you,
-- 
David N. Welton

http://www.welton.it/davidw/

http://www.dedasys.com/


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to