All Projects → samcarton → asciichart-sharp

samcarton / asciichart-sharp

Licence: MIT License
C# port of asciichart

Programming Languages

C#
18002 projects

Projects that are alternatives of or similar to asciichart-sharp

Asciichart
Nice-looking lightweight console ASCII line charts ╭┈╯ for NodeJS, browsers and terminal, no dependencies
Stars: ✭ 1,107 (+4000%)
Mutual labels:  console, chart, charting-library, ascii, plot, charting
HCLineChartView
HCLineChartView is a beautiful iOS library for drawing line charts. It is highly customizable and easy to use.
Stars: ✭ 22 (-18.52%)
Mutual labels:  chart, charting-library, charting, line-charts
Asciigraph
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.
Stars: ✭ 1,805 (+6585.19%)
Mutual labels:  chart, charting-library, plot, ascii-chart
Ervy
Bring charts to terminal.
Stars: ✭ 1,530 (+5566.67%)
Mutual labels:  console, chart, ascii
Ttyplot
a realtime plotting utility for terminal/console with data input from stdin
Stars: ✭ 532 (+1870.37%)
Mutual labels:  console, chart, plot
Jkqtplotter
an extensive Qt5 Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies
Stars: ✭ 246 (+811.11%)
Mutual labels:  charting-library, plot, charting
Tcharts.js
📉 Lightweight and fast terminal ASCII charts for nodejs and browser.
Stars: ✭ 172 (+537.04%)
Mutual labels:  console, chart, ascii
Anychart Android
AnyChart Android Chart is an amazing data visualization library for easily creating interactive charts in Android apps. It runs on API 19+ (Android 4.4) and features dozens of built-in chart types.
Stars: ✭ 1,762 (+6425.93%)
Mutual labels:  chart, charting-library, charting
smag
Show Me A Graph - Command Line Graphing
Stars: ✭ 78 (+188.89%)
Mutual labels:  console, chart, plot
Amcharts4
The most advanced amCharts charting library for JavaScript and TypeScript apps.
Stars: ✭ 907 (+3259.26%)
Mutual labels:  chart, charting-library, charting
Aachartkit
📈📊🚀🚀🚀An elegant modern declarative data visualization chart framework for iOS, iPadOS and macOS. Extremely powerful, supports line, spline, area, areaspline, column, bar, pie, scatter, angular gauges, arearange, areasplinerange, columnrange, bubble, box plot, error bars, funnel, waterfall and polar chart types. 极其精美而又强大的跨平台数据可视化图表框架,支持柱状图、条形图、折…
Stars: ✭ 4,358 (+16040.74%)
Mutual labels:  chart, charting-library, line-charts
ascii chart
Nice-looking lightweight console ASCII line charts ╭┈╯. Port of kroitor/asciichart.
Stars: ✭ 24 (-11.11%)
Mutual labels:  console, chart, ascii
Csconsoleformat
.NET C# library for advanced formatting of console output [Apache]
Stars: ✭ 296 (+996.3%)
Mutual labels:  console, ascii
Terminaltables
Generate simple tables in terminals from a nested list of strings.
Stars: ✭ 685 (+2437.04%)
Mutual labels:  console, ascii
Libfort
C/C++ library to create formatted ASCII tables for console applications
Stars: ✭ 255 (+844.44%)
Mutual labels:  console, ascii
Sadconsole
A .NET ascii/ansi console engine written in C# for MonoGame and XNA. Create your own text roguelike (or other) games!
Stars: ✭ 853 (+3059.26%)
Mutual labels:  console, ascii
Ascii canvas
ASCII canvas for drawing in console
Stars: ✭ 11 (-59.26%)
Mutual labels:  console, ascii
ctable
C library to print nicely formatted tables
Stars: ✭ 13 (-51.85%)
Mutual labels:  console, ascii
Video To Ascii
It is a simple python package to play videos in the terminal using characters as pixels
Stars: ✭ 960 (+3455.56%)
Mutual labels:  console, ascii
Lenz
Console based MAP 🗺 : with lots of features 🤩
Stars: ✭ 51 (+88.89%)
Mutual labels:  console, ascii

asciichart-sharp

C# port of asciichart (https://github.com/kroitor/asciichart)

Usage

var series = new double[100];
for (var i = 0; i < series.Length; i++)
{
    series[i] = 15 * Math.Sin(i * ((Math.PI * 4) / series.Length));
}
                
Console.OutputEncoding = Encoding.UTF8;
Console.WriteLine(AsciiChart.Plot(series));
 14.97 ┤          ╭───╮                                             ╭───╮
 13.97 ┤        ╭─╯   ╰─╮                                         ╭─╯   ╰─╮
 12.97 ┤       ╭╯       ╰╮                                       ╭╯       ╰╮
 11.98 ┤      ╭╯         ╰╮                                     ╭╯         ╰╮
 10.98 ┤      │           │                                     │           │
  9.98 ┤     ╭╯           ╰╮                                   ╭╯           ╰╮
  8.98 ┤    ╭╯             ╰╮                                 ╭╯             ╰╮
  7.98 ┤    │               │                                 │               │
  6.99 ┤   ╭╯               ╰╮                               ╭╯               ╰╮
  5.99 ┤  ╭╯                 ╰╮                             ╭╯                 ╰╮
  4.99 ┤  │                   │                             │                   │
  3.99 ┤ ╭╯                   ╰╮                           ╭╯                   ╰╮
  2.99 ┤ │                     │                           │                     │
  2.00 ┤╭╯                     ╰╮                         ╭╯                     ╰╮
  1.00 ┤│                       │                         │                       │
  0.00 ┼╯                       ╰╮                       ╭╯                       ╰╮
 -1.00 ┤                         │                       │                         │
 -2.00 ┤                         ╰╮                     ╭╯                         ╰╮                     ╭
 -2.99 ┤                          │                     │                           │                     │
 -3.99 ┤                          ╰╮                   ╭╯                           ╰╮                   ╭╯
 -4.99 ┤                           │                   │                             │                   │
 -5.99 ┤                           ╰╮                 ╭╯                             ╰╮                 ╭╯
 -6.99 ┤                            ╰╮               ╭╯                               ╰╮               ╭╯
 -7.98 ┤                             │               │                                 │               │
 -8.98 ┤                             ╰╮             ╭╯                                 ╰╮             ╭╯
 -9.98 ┤                              ╰╮           ╭╯                                   ╰╮           ╭╯
-10.98 ┤                               │           │                                     │           │
-11.98 ┤                               ╰╮         ╭╯                                     ╰╮         ╭╯
-12.97 ┤                                ╰╮       ╭╯                                       ╰╮       ╭╯
-13.97 ┤                                 ╰─╮   ╭─╯                                         ╰─╮   ╭─╯
-14.97 ┤                                   ╰───╯                                             ╰───╯

Options Usage

// same series as above
Console.WriteLine(AsciiChart.Plot(series, new Options
{
    AxisLabelLeftMargin = 3,
    AxisLabelRightMargin = 0,
    Height = 4,
    Fill = '·',
    AxisLabelFormat = "0,000.000",
}));
    0,014.970┤······╭───────────╮·····································╭───────────╮·······························
    0,007.485┤··╭───╯···········╰───╮·····························╭───╯···········╰───╮···························
    0,000.000┼──╯···················╰────╮···················╭────╯···················╰────╮···················╭─·
   -0,007.485┤···························╰───╮···········╭───╯·····························╰───╮···········╭───╯··
   -0,014.970┤·······························╰───────────╯·····································╰───────────╯······

Auto Label Width

Automatically sizes to fit the largest visible label.

var series2 = new double[100];
for (var i = 0; i < series.Length; i++)
{
    series2[i] = (200000 * Math.Cos(i * ((Math.PI * 8) / series.Length))) + 1000000;
}

Console.WriteLine(AsciiChart.Plot(series2, new Options{Height = 10}));
 1200000.00 ┼─╮                     ╭──╮                     ╭──╮                     ╭──╮                     ╭
 1160157.71 ┤ ╰─╮                 ╭─╯  ╰─╮                 ╭─╯  ╰─╮                 ╭─╯  ╰─╮                 ╭─╯
 1120315.41 ┤   ╰╮               ╭╯      ╰╮               ╭╯      ╰╮               ╭╯      ╰╮               ╭╯
 1080473.12 ┤    ╰╮             ╭╯        ╰╮             ╭╯        ╰╮             ╭╯        ╰╮             ╭╯
 1040630.82 ┤     │             │          │             │          │             │          │             │
 1000788.53 ┤     ╰╮           ╭╯          ╰╮           ╭╯          ╰╮           ╭╯          ╰╮           ╭╯
  960946.24 ┤      ╰╮         ╭╯            ╰╮         ╭╯            ╰╮         ╭╯            ╰╮         ╭╯
  921103.94 ┤       ╰╮       ╭╯              ╰╮       ╭╯              ╰╮       ╭╯              ╰╮       ╭╯
  881261.65 ┤        ╰╮     ╭╯                ╰╮     ╭╯                ╰╮     ╭╯                ╰╮     ╭╯
  841419.35 ┤         ╰╮   ╭╯                  ╰╮   ╭╯                  ╰╮   ╭╯                  ╰╮   ╭╯
  801577.06 ┤          ╰───╯                    ╰───╯                    ╰───╯                    ╰───╯
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].