Foundations of Random Number Generation in JavaScript Tim Brock / Thu, Jul 14, 2016 Being able to generate (apparently) random numbers is an essential requirement for many areas of math, statistics, the sciences, technology and gaming. For instance, they can be used to assign participants...
SVG versus Canvas Tim Brock / Thu, Jun 23, 2016 Suppose you want to draw something on your web page using browser-native technologies. It might be some kind of animated scene, it might be a technical diagram, it could be some kind of custom infographic...
The Importance of Prose in Communicating Data Tim Brock / Thu, Jun 2, 2016 If you're a data communicator, having a good understanding of chart and table design is important. Thankfully, the art and science of creating effective charts and tables is the subject of a great number...
New Solutions to Old JavaScript Problems: 2) Default Values Tim Brock / Mon, May 9, 2016 Introduction This is the second in a series on how new JavaScript features, introduced in the ECMAScript 2015 standard (aka ES6), allow for simpler solutions to some old JavaScript problems. In part...
When it Comes to Dataviz, Color is Complicated: Part 2 Tim Brock / Mon, May 2, 2016 This is Part 2 (in a series of 2) on why color is a complex and confusing topic. In Part 1 I looked at cases where colors might not be interpreted as expected. Here I'll cover the difficulties of picking...
When it Comes to Dataviz, Color is Complicated: Part 1 Tim Brock / Wed, Apr 27, 2016 In all the articles I've written here I've covered a fairly broad range of topics related to data visualization: the use of tick marks and labels , data density , the problems with dual-axis charts and...
New Solutions to Old JavaScript Problems: 1) Variable Scope Tim Brock / Tue, Mar 22, 2016 Introduction I love JavaScript but I'm also well aware that, as a programming language, it's far from perfect. Two excellent books, Douglas Crockford's JavaScript : The Good Parts and David Herman's...
Stacked Area Charts and Mathematical Approximations Tim Brock / Thu, Feb 25, 2016 I've previously noted that I think stacked area charts are frequently used when a conventional line chart would be a better option. Here is the (fictional) example I used previously and the conventional...
Why We Should Report More Than Just the Mean Tim Brock / Thu, Feb 18, 2016 Numbers without context are of very limited use. So it's a good thing that articles in newspapers and reports in the wider world will often compare the figures they relay to the (mean) average. But invariably...
A Step-by-step Introduction to JavaScript Sets Tim Brock / Fri, Feb 12, 2016 As mentioned previously , we have a new JavaScript standard commonly known as ECMAScript 6 (ES6). I've spent quite a bit of time recently reading around the new features outlined in the standard that...