{# Template for any scripted graphics, i.e. D3 charts #} {% extends 'base.html' %} {% from 'macros/prose.html' import prose %} {% block content %}
Start creating graphics by copying graphic.html and/or graphic-static.html, both located in the templates/ folder, and pasting it in the app/ folder at the top level. You can make as many graphics as you need. Feel free to rename the files!
graphic.html is set up for graphics involving JavaScript
graphic-static.html is set up for static graphics (HTML tables, Adobe Illustrator graphics)
All of our graphics are set up to fetch text and other attributes from a Google Doc. Here's the template for that. You'll need to make a copy of this template and swap out the template's file ID with your copy's file ID in project.config.js, in the files property. Then, run npm run data:fetch and you'll see your text in the templates.
For more documentation on the kit, check out the README and our kit setup guide.