This is a fork of the open-sourced Axios ai2html instance found here
And that is a fork of the original NYTimes instance found here
This slug.ai
template is exactly the same as the one we use at Axios with a few changes. It uses the same Google web font used on the Missourian site (Source Sans Pro). The Missourian graphics template uses Franklin Gothic. They're fairly similar.
I've added the Missouri graphics color palette and style references to the slug.ai
file as well.
Note: There are a lot of files in this directory. You really only need to worry about two of them: ai2html_como_v1.js
and the /yyyy-mm-dd
directory.
-
Move the
ai2html_como_v1.js
file into the Illustrator folder where scripts are located. For example, on Mac OS X running Adobe Illustrator CC 2017, the path would be:Applications/Adobe Illustrator CC 2017/Presets/en_US/Scripts/ai2html_como_v1.js
-
Close and restart Illustrator.
-
Start a new project by duplicating the project template folder
/yyyy-mm-dd-slug
. -
Change the name of the directory to your project slug. For example:
2019-01-21-traffic-accidents
-
Change the name of the
slug.ai
file to the slug name as well. For example:2019-01-21-traffic-accidents.ai
-
Create your Illustrator artwork in the ai file. I like to start with the "Mobile Large" artboard, because that's the one our audience is most likely to see. If it works on people's phones, it will be easy to size up for a desktop view as well.
-
When you're done creating the chart at that size, cut and paste it into each of the artboards and adjust the layout and labeling as necessary. The goal is to make sure the chart looks good at all sizes.
-
When that's all set, run the script by choosing:
File > Scripts > ai2html_como_v1
in Illustrator. Then, go to the folder containing your Illustrator file. Inside will be a folder called2019-01-21-traffic-accidents
(or whatever your slug name is). -
Open the html file (ex:
2019-01-21-traffic-accidents.html
) in your browser to preview your output.
Check out the Sample Project
directory to see a working Illustrator example and output directory.