Hi Michael,
Michael Friendly wrote:
> I have a student working on a timeline project based on my web site
> on the history of data visualization,
> http://www.math.yorku.ca/SCS/Gallery/milestone/
>
> A testing version of the timeline is at
> http://www.moiz.ca/infovis/milestones/
> with the .xml file at
> http://www.moiz.ca/infovis/milestones/timeline.xml
>
>
> Questions:
>
> * BC dates: There is a handful of BC dates in the full database,
> and others < 1000.
> We've been unable to get timeline to read these in the .xml file,
> though we've tried a variety of possibilities. For now, we've just
> deleted these events. I believe this bug
> has been fixed in the code that reads JSON format, but not for XML.
>
Have you tried padding zeros to make 4-digit dates, like "0920" and "-0100"?
> * Is it possible to control the size / rescale images presented via the
> image="" attribute (as one can normally do in html with
> <img src="" width="100"> to get thumbs, or is it necessary to produce
> the thumbs as separate images? I have several hundred images.
>
You can have complete control of what goes into the bubble by overriding
Timeline.DefaultEventSource.Event.prototype.fillInfoBubble
specified near the end of this file
http://simile.mit.edu/timeline/api/scripts/sources.js
Just put in your own code after you include timeline-api.js.
> * Is it possible to specify a resolution for the dates presented in the
> timeline? All of the event items have times in years. It doesn't make
> any sense to see, in the popup bubble,
> Wed. 31 Dec 1304 19:00:00 GMT
> for an item that has start="1305"
>
Once you override fillInfoBubble then it's up to you how to display the
date. But by default, there is no fine-grained control of that.
> * Categorized events: These events have been categorized in several
> ways, e.g., by Form-- Maps, Diagrams, Technology. I see from the Monet
> example that one can use different icons. Is there any other way to
> group events visually by category? e.g., different text color for the
> label, different vertical bands, etc.
>
To group into different bands, load the events into different event
sources (instead of just one). Each band can have its own event source.
See this example
http://www.lincolnstein.org/timelines/
The text color can be set in the textColor attribute, e.g.,
<event textColor="red" ...
<event textColor="#0000ff" ...
The color attribute is for setting the background color of a duration
event (one with an end time).
> * End for the timeline: How / where can we specify that the timeline
> data ends in a given year, so that one can't scroll right to years
> past that date?
>
Sorry, that's not supported.
> * I thought that it should be possible to include simple <b>HTML
> formatting</b> within an event like that, but this doesn't work.
> Is there something I've missed?
>
You need to escape < and > as you would inside HTML, as < and >.
Hope that helps,
David
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general