AsciiTimeSeries

May 9, 2020 ยท View on GitHub

C# class that renders a numerical collection (double) to a string which (when displayed with a monospace font, e.g. in terminal) will show a time series chart. I.e. it builds a graph with ASCII boxes.

UI

Usage

  1. Cpoy-paste AsciiTimeSeries.cs class to your project.

  2. Create AsciiTimeSeries instance, set Series property and render it to a string:

var ascii = new AsciiTimeSeries();
ascii.Series = series;
Console.WriteLine(ascii.RenderToString());

See the sample Console Project within this repo