Svelte template

Components you can use

You want graphics? We've got plenty! There are a few components, and the list continues to grow, that come 'out of the box' and ready for you to use. Here is a list of them, along with reference implementations.

Dropdown
Timeline Timelines live in their own route

To configure the timeline:

  1. Make a copy of the timeline template spreadsheet. This is where the data lives. Link to sheet
  2. Make the spreadsheet public as a csv, copy the provided url
  3. Go to the timeline.js store and replace the url located on line 12 in the url variable with the copied url of the publicly shared spreadsheet
Buttons

Buttons are styled according to two props: size and variant. You can use any combination of the two to get the button style you want.

Sizes

Variants

Fancy List
1

A type of electrode that causes electrical current to leave a device.

2

In EV batteries, they are usually sheets of metal that store lithium oxide — lithium mixed with other metals — before the lithium is charged and travels to the anode.

3

Seven companies make up 55% of global cathode production, predominantly in China but also in Japan. Although likely outdated, a U.S. International Trade Commission report from 2019 ranked the world's top cathode producers: China (324,200 tons), Japan (168,900 tons) and South Korea (51,200 tons).

Ranked Bar
Headlines seem to bring people in

Headlines, once read as an annoyance, have cataputed in popularity.

China

65

Other Countries

20

Finland

10

Belgium

5

Address lookup

Component allows for looking up addresses and getting back a latitude/longitude pair.

We do not store your address. Privacy Policy →

Call To Action Box
Do you have a news tip to share with us?

Share confidential news tips or sensitive information to us through a secure channel.

Note Box
How we did it

The California Department of Justice, tasked with investigating all police shootings of unarmed citizens since July 1, 2021, keeps only a brief list of each case on its public website. To document these shootings, CalMatters reviewed the post-incident briefings provided by law enforcement where available, and searched coroner and medical examiner reports, news accounts, police review board findings and lawsuits filed after the shootings. CalMatters also requested “all relevant records” related to the shootings from each department. As of posting, most of the public records requests were denied or delayed, with departments citing the incomplete California Department of Justice investigations. 

The Officer Involved Shooting briefings provided by police departments can be imperfect tools. The briefings are often highly curated reviews of select portions of the video, which critics allege are designed to make the people shot appear in the worst possible light and put the officer or officers’ actions in the best. The same can be true for videos edited and released by plaintiffs’ attorneys seeking damages.

Bar chart
fetching...
County level map
San Bernardino Santa Barbara Fresno Eureka San Jose Sacramento San Diego San Francisco Los Angeles
Legend title

Some descriptive text, if you want.

  • Marin County
  • Imperial County
  • Neither Marin nor Imperial County
Source: TKTKTK
Leaflet map
Line chart
TKTKTK ↑
34
70
2009
2010
2011
2012
2013
2014
Source: TKTKTK

Try out some different options for the line chart

Mapbox map

Potentially useful links

Source: TK