Chart Tool is a platform for creating, storing and displaying beautiful, responsive embeddable charts. Designed to fit the needs of a fast-paced mobile and print newsroom, Chart Tool generates charts in several formats:
Chart Tool is made up of two parts:
A back end interface for storing data, creating and exporting charts, and generating a static embed code, powered by Meteor and React. Embed codes are static by design — if your back end goes down, all the charts on your site will still display properly. Try out a demo of the charts interface.
A front-end JavaScript and CSS library that parses embed codes generated by the back end and renders a responsive chart on your website using parts of D3.js. The front-end library also offers an API that can be accessed to modify charts before or after they've been drawn. Check out some example charts on our website.
Examples of the types of charts Chart Tool can generate can be found here.
For a demo of the back end interface used to generate charts, images and PDFs, check out our demo app.
Curious to try out Chart Tool, but don't want to go through the process of setting it up? Try out our hosted demo version.
First, you'll need Node.js 8.11 installed. We recommend using nvm to keep your Node version in sync with what Chart Tool expects. This is important: anything lower and Meteor will fail in spectacular and unexpected ways.
Next, you'll need to install Meteor.
You'll also need Gulp.
$ npm install -g gulp
Then, clone the Chart Tool repo and install your NPM dependencies for both the root project and the backend, which will make sure Gulp is set up and can run your project:
$ git clone [git-repo-url] && cd chart-tool
$ npm install
After that, you'll need to do cd meteor && meteor
to get Meteor running for the first time, which provisions the Mongo database and installs all the dependencies it'll need (this might take a minute). Once that's done, you're in business. Stop the Meteor server (CTRL-C
on a Mac) and cd
back to the parent directory.
Then, all you need to do is:
$ gulp
That's it! You're running your own development copy of Chart Tool! :tada: :tada: :tada:
Now that you've got Chart Tool up and running, here are some tips on how to get rolling.
For starters, you might want to read up on how to make your first chart. A full tutorial, including how to embed it on the web or generate a static image at multiple sizes is available here.
Otherwise, these are some other tutorials you might want to check out:
1.4.2
Chart Tool © 2017 The Globe and Mail. It is free software, and may be redistributed under the terms specified in our MIT license.
If you've got any questions, feel free to send us an email, or give us a shout on Twitter:
Tom Cardoso @tom_cardoso |
Jeremy Agius @j_agius |
Michael Pereira @monkeycycle_org |
Matt Frehner @mattfrehner |