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.

NVIDIA quarterly revenue since 2020

NVIDIA quarterly revenue since 2020 as an SVG line chart
cat series.csv | npx @qip.dev/qipx qip.dev run \
  text/csv/time-series-csv-to-svg-polylines.wasm -u x_axis_tick_year_interval=1 \
  > chart.svg

NVIDIA quarterly revenue, EMA window 3, with a mean line

NVIDIA quarterly revenue after an exponential moving average, with a dashed mean line
cat series.csv | npx @qip.dev/qipx qip.dev run \
  text/csv/time-series-csv-to-svg-polylines.wasm -u x_axis_tick_year_interval=1 \
  image/svg+xml/svg-polylines-add-mean-lines.wasm \
  image/svg+xml/svg-polylines-exponential-moving-average.wasm -u window_size=3 \
  > chart-ema-with-mean.svg

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:

NVIDIA quarterly revenue with a four-quarter average

NVIDIA quarterly revenue as vertical bars by fiscal quarter, with a four-quarter average line
cat quarters.csv | npx @qip.dev/qipx qip.dev run \
  text/csv/fiscal-quarter-csv-to-svg-bars.wasm \
  image/svg+xml/svg-bars-add-y-axis.wasm \
  image/svg+xml/svg-bars-add-quarter-x-axis.wasm \
  image/svg+xml/svg-bars-add-rolling-mean.wasm -u window_size=4 \
  > chart.svg