Where Does It End

Have you ever spent hours on something, made it work, and then discovered a feature in the language that could have saved you a ton of effort? That’s what happened when I tried to figure out how to draw an arrowhead to a curved line at some distance from the center of a target (see banner). TL;DR When working with custom visualizations, you might need to do some math. But make use of (and give credit to) the community around these tools....

 · 6 min · Jeff Wilson

New Digs

I’ve recently found myself with a little more free time, and so this new site is finally coming together. Topics I will be discussing include the typical meta-topic of hosting and updating affordable static sites on the internet, but I’ll also be touching on the challenge of maintaining control of a site while enabling external contributions … clearly not a thing just yet on this site. Tools of the trade may include (in alphabetical order) AWS 🔗 , Cloudflare 🔗 , GitHub 🔗 , Slack 🔗 and Zapier 🔗 ....

 · 1 min · Jeff Wilson

Using D3 with Angular and React

Introduction This post builds on a discussion started last week on managing visualization state. For some more context please see last week’s post. Example - D3 meets React and Angular We start by revisiting (and revising) a simple brushing visualization from Mike Bostock introduced as an example of user interaction with data-driven visualizations. JavaScript-enabled users get an interactive version of this static image. The code for our starting point is fairly typical of D3 sample code....

 · 14 min · Jeff Wilson

Managing Visualization State

Problem How best to manage the state of interactive browser-based visualizations. Context Interactive web applications composed of data-driven visualizations typically take advantage of open source JavaScript libraries. Choosing the right visualization library is one of the developer’s first decisions, and an important but sometimes hidden element of this decision is how the library maintains interaction state. In the early days of the web it might be said that the DOM was the state, and many excellent visualization libraries start with this assumption....

 · 7 min · Jeff Wilson

A MIDI API using Node-RED

Prelude and Caveat This post builds on another post that introduces RESTful APIs using Node-RED. If you haven’t read it already, please see that post. It should be repeated that there are other – perhaps better – ways besides a RESTful API for connecting a MIDI device to a web application. In a future post I will extend this MIDI example using web sockets, but please note that the central purpose of this discussion is not to demonstrate an ideal solution but rather to demonstrate the value of API prototyping using visual tools....

 · 12 min · Jeff Wilson