Rotate and Translate Points with d3 in a TopoJSON Map

Transforms in a map svg can engage and delight users. With a little extra effort, you can give your customer something unexpected that they enjoy using. However, transforms can be complicated to get right. The syntax, sequence, and math can give anyone a headache when they are trying to transform a vision into code. The … Read more

Transition Chaining with React and d3 in TopoJSON Map

My favorite JavaScript map library is TopoJSON with d3 because it is simple to configure and there are fantastic examples to get a project up and running quickly.  In this project, I have a TopoJSON map of the United States with latitude/longitude points for each capital city.  I have multiple transitions chained together on the … Read more

The Difference Between a Tuple and an Array in TypeScript

I recently made a small utility for converting an array to an object.  I was exploring the syntax for the 2-dimensional array and wanted to investigate when a tuple was a better data structure. In my utility code below, I originally structured the array parameter as a 2-dimensional array.  However, in this case I always … Read more

Transform 2-D String Array to Object Using TypeScript and JavaScript

Sometimes you need to convert a 2-dimension array of strings into an object. Perhaps you received data from the server and need to populate your objects. Or perhaps you have data to send to the server and need to convert an array to an object parameter for the REST call. The below code is a … Read more