Team MAGIC, or “The Magicians” (as they are known within Alley) found themselves with a rare opportunity to link their in-person retreat with the American Alliance of Museums yearly conference in New Orleans. Team Magic has worked on many museum projects and a few members of the team were speaking at the conference last year. So, instead of choosing a random city somewhere in the continental United States of America, the Magicians set their sites on the birthplace of jazz.
With Simplechart, an author can quickly create a dynamic chart without needing to engage a developer, designer, or data scientist. The end result is fully responsive, custom, and completely interactive to the end user.
To use Simplechart, all you need is a dataset in comma-separated value (CSV) form. You can access Simplechart from the CMS admin screen and an iframed application will appear where you can paste or manually enter your data. You can then preview the results in different chart types, such as bar, pie, or linear, and choose the type of chart based on how you want to display your data. Customizable options include responsive breakpoints, data display formatting, and more. Product owners can also apply custom default options to create, for example, a consistent color palette across all charts on a particular site.
In this example, we’re using a pie chart to show the geographic distribution of Alley team members. As you can see here, most of our team members reside in New York, near our NYC headquarters, but we also have a strong contingents in Vermont and Pennsylvania.
After taking an informal survey of 25 Alley team members, we discovered that 3 team members own both dogs and cats, 7 team members own only dogs, 6 team members have cats-only homes, 8 team members have no pets, and 1 team member is a proud lizard parent.
This line chart example looks at the populations of New England states using census data from 1960-2010.
You can see Simplechart in action on a few sites already. For example, the Brookings Institution has been using Simplechart since their August launch to showcase data like the breakdown of party parliamentary seats in the 2011 Moroccan election.
Under the hood
Our initial prototyping for Simplechart was written in Angular.js. It was a promising start but became weighed down by the complexity that framework imposes. Ultimately, we chose to rewrite from the ground up in React/Redux. This framework’s “single source of truth” model has been a much better fit with the application, and React makes it possible to use the same component to display the chart while you’re editing it as when it’s embedded in a frontend template.
There is a Simplechart plugin available for WordPress and WordPress.com VIP sites right now, but it is designed to be compatible with any CMS. It is a free and open-source project and welcomes pull requests here.