Skip to content

DublinInquirer/you-draw-it

Repository files navigation

You Draw It

An interactive chart that lets readers guess the trend

Screen_Recording_20230614_102027_Firefox.mp4

Credits

This project is heaviliy inspired by The New York Times' series of You Draw It quizzes. Massive thanks to Adam Pearce and Benoît Furic for their example code and to Claudia Dalby for suggesting this project.

Getting started

How it works

The chart takes data from the following parameters in the URL query string:

Param Description
title (optional) The chart title
x A string of comma-separated integers for the x-axis. It's intended to be used for years, for example, x=2020,2021,2022,2023.
y A string of comma-separated integers or floats for the y-axis.
maxY (optional) The max value of the y-axis. Defaults to 1.1 times the max value in the y param.
height (optional) The height of the chart in pixel. Defaults to 200

Building

To build for production, run npm run build. Static files will be generated in the dist/ directory.

Licence

MIT

About

An interactive chart that lets readers guess the trend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published