README 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. CHAP Links Network
  2. http://www.almende.com
  3. http://links.sourceforge.net
  4. DESCRIPTION
  5. The Timeline is an interactive visualization chart to visualize events in time.
  6. The events can take place on a single date, or have a start and end date
  7. (a range). You can freely move and zoom in the timeline by dragging and
  8. scrolling in the Timeline. Events can be created, edited, and deleted in the
  9. timeline. The time scale on the axis is adjusted automatically, and supports
  10. scales ranging from milliseconds to years.
  11. When the timeline is defined as editable, events can be moved to another time
  12. by dragging them. By double clicking, the contents of an event can be changed.
  13. An event can be deleted by clicking the delete button on the upper right. A new
  14. event can be added in different ways: by double clicking in the timeline, or by
  15. keeping the Ctrl key down and clicking or dragging in the timeline, or by
  16. clicking the add button in the upper left of the timeline, and then clicking or
  17. dragging at the right location in the timeline.
  18. The Timeline is developed as a Google Visualization Chart in javascript. It
  19. runs in every browser without additional requirements. There is a GWT wrapper
  20. available to use the Timeline in GWT (Google Web Toolkit), you can find relevant
  21. documentation here.
  22. The Timeline is designed to display up to 100 events smoothly on any modern
  23. browser.
  24. USAGE
  25. The Timeline is no built-in visualization of Google. To load the Timeline,
  26. download the file timeline.zip and unzip it in a sub directory timeline on your
  27. html page. Include the google API and the two downloaded files in the head of
  28. your html code:
  29. <script type="text/javascript" src="http://www.google.com/jsapi"></script>
  30. <script type="text/javascript" src="timeline/timeline.js"></script>
  31. <link rel="stylesheet" type="text/css" href="timeline/timeline.css">
  32. The google visualization needs to be loaded in order to use DataTable.
  33. google.load("visualization", "1");
  34. google.setOnLoadCallback(drawTimeline);
  35. function drawTimeline() {
  36. // load data and create the timeline here
  37. }
  38. The class name of the Timeline is links.Timeline
  39. var timeline = new links.Timeline(container);
  40. After being loaded, the timeline can be drawn via the function draw(), provided
  41. with data and options.
  42. timeline.draw(data, options);
  43. where data is a DataTable, and options is a name-value map in the JSON format.
  44. DOCUMENTATION
  45. Documentation can be found in the directory doc
  46. Examples can be found in the directory examples