updates_js = raw_data.data.races
.filter((r) => r.race_slug.includes("president"))
.flatMap((r) =>
r.timeseries.map((update) => ({
Reporting: update.eevp / 100,
percent_Trump: update.vote_shares.trumpd,
percent_Biden: update.vote_shares.bidenj,
timestamp: update.timestamp,
state: r.state_name
}))
)