🏠 back to Observable

Add slider to display data over time


Beginner here. I am exploring observable’s slider function now and wonder how I can display two sets of data using a slider on my chart? Link to my notebook: https://observablehq.com/d/1346b4e09e3ad8c2

Above are the two data sets (data and data_set_1) and I would like to add a time slider like this but I do not know how to link up the data as variables to the slider.

Any help would be greatly appreciated! I am an absolute beginner so sorry if the questions I asked seems dumb…

Thanks :slight_smile:

First off, your link (https://observablehq.com/d/1346b4e09e3ad8c2) seems to be private. You should publish it (preferably unlisted, for this type of thing) and then edit this post to include the published link.

Second, take a look at this notebook from your other post. I guess there are three sliders there, angle1, angle2, and angle3. The thing that links the image to those sliders is simply the reference to those variable names. Any other image you create that references those same variables should be similarly linked to those sliders.

1 Like

Thanks Professor McClure. The link is now public and forget about the angles for now. Would you please guide me through how I reference the time slidebar to the two sets of data?