timeglider / jquery_widget

Timeglider's JS Widget component. See README for details.
193 stars 41 forks source link

How could change the date settings? #5

Closed janstieler closed 13 years ago

janstieler commented 13 years ago

HI, how could I change the datesettings? I need a one year range from january to dezember without a year.

Best regards

timeglider commented 13 years ago

Every event, being on a precise horizontal axis, needs to have a start date ("startdate"). If it's a range, you need "enddate" as well --- including year, month, day, and even time. That said, you don't need to display the date at all (on hover, in the details modal). I've just updated a few files to, first change the "date_limit" property in the JSON to "date_display" (see the JSON page in my docs: http://timeglider.com/jquery/?p=json) In the JSON for that event object, you could add this line: "date_display":"none" and no date would be shown.

janstieler commented 13 years ago

Hi, sorry I was not precise enough. I mean not the date in the modal but I mean the timeaxis. In this I need a axis from january to december. Is there a option to set this?

BR

talamaska commented 13 years ago

i got the same question, is it based on max and min date of all events?

timeglider commented 13 years ago

if it's the view you're talking about (rather than a specific timeline), setting the focus date of the timeline being loaded, in combination with the zoom level, is what sets the overall scope. Right now, there's no method to set the timeline to a focus/scope based on start end dates ------ it's what's set in the middle. A lot of this depends on the width of your container div, too.

xiunen commented 11 years ago

i have the same problem, i want make the timeaxis as precise as seconds/minutes level.