Charts
Chart-focused QIP components:
CSV to SVG polylines #
These examples run in the browser. They plot NVIDIA's reported quarterly
revenue, in USD millions, from April 2020 through April 2026. The series shows
the 2022 slowdown followed by the AI infrastructure expansion. NVIDIA's Q1 fiscal 2027 results
report the latest point and the comparable prior-year result. The first CSV
column is date or a UTC timestamp; every following numeric column becomes
a data polyline. The SVG keeps those polylines in value space, so the next
example can smooth the series without changing the chart layout.
Fiscal quarter CSV to SVG bars #
Quarterly earnings read best as one bar per reported quarter, labelled by
fiscal quarter, with a trailing four-quarter average to smooth seasonality. The
CSV has a fiscal_quarter column (FY2027Q1) and one value column. Rows must
be consecutive quarters. Fiscal years are whatever the company reports:
NVIDIA's fiscal 2027 began in February 2026.
Text around each number is the label format. $81.615B makes the y axis print
$20B, $40B and so on. Every row must use the same prefix and suffix. The
bars component writes the prefix, suffix, plot area and value domain to
data-* attributes on the root <svg>. Each later pass reads those
attributes, so you can add or remove passes independently:
svg-bars-add-y-axis draws labelled gridlines behind the bars at the
domain's round step. The tick_count uniform picks a different step.
svg-bars-add-quarter-x-axis labels each bar Q1–Q4 and adds ’27
under each fiscal year's first quarter.
svg-bars-add-rolling-mean draws the trailing mean of window_size bars
(default 4). The line starts at the first full window.