kgeographer / linking-linked-places

Original 2016 take at what is now Linked Paths, the demonstrator for GeoJSON-T developed under a Pelagios micro-grant
90 stars 8 forks source link

Simple example/template to get started #1

Closed mulderp closed 9 years ago

mulderp commented 10 years ago

Hi,

this project looks very interesting! I'd like to get started with this, but I can't figure out, what the actual library is, and what belongs to the quite advanced examples.

Imagine, I'd like to plot the life spans of 3 composers: Haydn (1732 - 1809), Mozart (1756 - 1791) and Beethoven (1770 - 1827).

I'd start with some simple HTML:

<html>
<head>
<script src="d3.js"></script>
<script>
  var Haydn = { from: 1732, until: 1809 };
  var Mozart = { from: 1756, until: 1791};
  var Beethoven = { from: 1770, until: 1827 };
</head>
<body>
  <div id="timelines">
  </div>
</body>
</html>

But now, I'd confused what my options are to plot their lifes, e.g. with minimum/no interaction.

I'd probably arrive at interaction only at the latest step.

It would be great if you could give me some hinters, what to look for!

Thanks!