From the course: Processing: Interactive Data Visualization

Unlock the full course today

Join today to access over 22,400 courses taught by industry experts or purchase this course individually.

Implementing slicing

Implementing slicing - Processing Tutorial

From the course: Processing: Interactive Data Visualization

Start my 1-month free trial

Implementing slicing

One helpful way of interacting with data is with what's called slicing. Now there's a few different versions of this, but the version of slicing that we're going to be using is basically a lateral only hover. That is, you're driving a line over data points from left to right, and when you get to them, it will bring up the information that you want. It will do the interactivity at that point. Now a couple of chapters ago, we did a movie that featured some slicing and that was the one on the line plot, and what I'm doing is I'm bringing up the code on that one again, but I want to show you a little bit more about how we did the slicing, how it functioned and some of the choices that went into it. So, let me first show you exactly what it looks like again. So I'm going to just hit the Play button and here we bring up this Georges Braque Google search data. You see I've got a cursor here. As I bring it over a couple of things happen. Most significantly, the cursor disappears. Also I have…

Contents