Home · Command reference

RainbowStats™ · Command reference

LINE_CHART

Draw time-series lines for one or more series.

Syntax

LINE_CHART(series,...)
LINE_CHART(seriesList)

Example

LINE_CHART(SERIES_SINCE(INDPRO,20000101))

Notes

Series and series lists are flattened into one chart. Existing dates and units are retained.

Charting large datasets with EPICYCLE_LINE_CHART

Use LINE_CHART when individual observations matter, such as the yield on a particular day. For an overview of several long daily histories, EPICYCLE_LINE_CHART can send a much smaller chart through MCP. The browser reconstructs each line from a trend and Fourier coefficients at the series' original observation dates.

EPICYCLE_LINE_CHART(seriesList[, components])

Collect the series in LIST(...), even for a single series. Each series needs at least two finite observations in strictly increasing date order. The optional second argument is a positive integer giving the maximum number of Fourier components per series. Omitting it uses 128.

Example: four daily Treasury yields

Rates=LIST(DGS2,DGS5,DGS10,DGS30)
Chart=EPICYCLE_LINE_CHART(Rates,128)

A smaller component count gives a smoother curve and a smaller payload. A larger count can capture more short-term variation. Even the hover values are approximations, and sharp moves can be smoothed or overshot. To check a spike, plot the same dates with LINE_CHART(Rates). Use the original series for calculations.

For a blog post, use Save Active Panel to export the rendered chart as a scalable SVG. The Fourier representation reduces the data sent to the browser. The SVG exporter separately simplifies dense paths for a smaller image file.

Learn more

Detailed guide and examples