All Projects → guptarohit → Asciigraph

guptarohit / Asciigraph

Licence: bsd-3-clause
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Asciigraph

Asciichart
Nice-looking lightweight console ASCII line charts ╭┈╯ for NodeJS, browsers and terminal, no dependencies
Stars: ✭ 1,107 (-38.67%)
Mutual labels:  terminal, graph, chart, plot, charting-library
Uplot
📈 A small, fast chart for time series, lines, areas, ohlc & bars
Stars: ✭ 6,808 (+277.17%)
Mutual labels:  graph, chart, plot, line-chart
Aachartkit Swift
📈📊📱💻🖥️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: ✭ 1,962 (+8.7%)
Mutual labels:  graph, chart, plot, line-chart
Ttyplot
a realtime plotting utility for terminal/console with data input from stdin
Stars: ✭ 532 (-70.53%)
Mutual labels:  graph, chart, plot, command-line-tool
asciichart-sharp
C# port of asciichart
Stars: ✭ 27 (-98.5%)
Mutual labels:  chart, charting-library, plot, ascii-chart
Cheat.sh
the only cheat sheet you need
Stars: ✭ 27,798 (+1440.06%)
Mutual labels:  terminal, command-line, hacktoberfest2021
Desktoppr
Simple command line tool to set the desktop picture on macOS
Stars: ✭ 127 (-92.96%)
Mutual labels:  terminal, command-line, command-line-tool
Amcharts4
The most advanced amCharts charting library for JavaScript and TypeScript apps.
Stars: ✭ 907 (-49.75%)
Mutual labels:  graph, chart, charting-library
Text Minimap
Generate text minimap/preview using Braille Patterns
Stars: ✭ 21 (-98.84%)
Mutual labels:  utility, command-line, command-line-tool
Google Images Download
Python Script to download hundreds of images from 'Google Images'. It is a ready-to-run code!
Stars: ✭ 7,815 (+332.96%)
Mutual labels:  terminal, command-line, command-line-tool
Ed
A modern UNIX ed (line editor) clone written in Go
Stars: ✭ 44 (-97.56%)
Mutual labels:  terminal, command-line, command-line-tool
Sultan
Sultan: Command and Rule over your Shell
Stars: ✭ 625 (-65.37%)
Mutual labels:  terminal, command-line, command-line-tool
Highcharts Chart
Polymer Element wrapper for highcharts library. Seamlessly create various types of charts from one element.
Stars: ✭ 97 (-94.63%)
Mutual labels:  graph, chart, plot
Jmxterm
Interactive command line JMX client
Stars: ✭ 389 (-78.45%)
Mutual labels:  terminal, command-line, command-line-tool
Sampler
Tool for shell commands execution, visualization and alerting. Configured with a simple YAML file.
Stars: ✭ 9,203 (+409.86%)
Mutual labels:  terminal, command-line, command-line-tool
React D3 Components
D3 Components for React
Stars: ✭ 1,599 (-11.41%)
Mutual labels:  graph, chart, charting-library
Tsukae
🧑‍💻📊 Show off your most used shell commands
Stars: ✭ 345 (-80.89%)
Mutual labels:  terminal, command-line, command-line-tool
Httpcat
httpcat is a simple utility for constructing raw HTTP requests on the command line.
Stars: ✭ 109 (-93.96%)
Mutual labels:  utility, terminal, command-line
Theme.sh
A script which lets you set your $terminal theme.
Stars: ✭ 290 (-83.93%)
Mutual labels:  terminal, command-line, command-line-tool
Termplotlib
Plotting on the command line
Stars: ✭ 294 (-83.71%)
Mutual labels:  terminal, command-line, plot

asciigraph

Build status Go Report Card Coverage Status GoDoc License Mentioned in Awesome Go

Go package to make lightweight ASCII line graphs ╭┈╯.

image

Installation

go get github.com/guptarohit/asciigraph

Usage

Basic graph

package main

import (
    "fmt"
    "github.com/guptarohit/asciigraph"
)

func main() {
    data := []float64{3, 4, 9, 6, 2, 4, 5, 8, 5, 10, 2, 7, 2, 5, 6}
    graph := asciigraph.Plot(data)

    fmt.Println(graph)
}

Running this example would render the following graph:

  10.00 ┤        ╭╮
   9.00 ┤ ╭╮     ││
   8.00 ┤ ││   ╭╮││
   7.00 ┤ ││   ││││╭╮
   6.00 ┤ │╰╮  ││││││ ╭
   5.00 ┤ │ │ ╭╯╰╯│││╭╯
   4.00 ┤╭╯ │╭╯   ││││
   3.00 ┼╯  ││    ││││
   2.00 ┤   ╰╯    ╰╯╰╯

Command line interface

This package also brings a small utility for command line usage. Assuming $GOPATH/bin is in your $PATH, simply go get it then install CLI.

CLI Installation

go install github.com/guptarohit/asciigraph/cmd/asciigraph

or download binaries from the releases page.

Feed it data points via stdin:

$ seq 1 72 | asciigraph -h 10 -c "plot data from stdin"
  72.00 ┼
  65.55 ┤                                                                  ╭────
  59.09 ┤                                                           ╭──────╯
  52.64 ┤                                                    ╭──────╯
  46.18 ┤                                             ╭──────╯
  39.73 ┤                                      ╭──────╯
  33.27 ┤                              ╭───────╯
  26.82 ┤                       ╭──────╯
  20.36 ┤                ╭──────╯
  13.91 ┤         ╭──────╯
   7.45 ┤  ╭──────╯
   1.00 ┼──╯
           plot data from stdin

Realtime graph for data points via stdin:

$ ping -i.2 google.com | grep -oP '(?<=time=).*(?=ms)' --line-buffered | asciigraph -r -h 10 -w 40 -c "realtime plot data (google ping in ms) from stdin"

asciinema

Acknowledgement

This package started as golang port of asciichart.

Contributing

Feel free to make a pull request! :octocat:

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].