An open API service indexing awesome lists of open source software.

https://github.com/maxhalford/arcgonaut

:cyclone: Golang arc diagrams
https://github.com/maxhalford/arcgonaut

Last synced: 5 months ago
JSON representation

:cyclone: Golang arc diagrams

Awesome Lists containing this project

README

          

# arcgonaut

![License](http://img.shields.io/:license-mit-blue.svg)

Software for creating arc diagrams such as:

![Airports](examples/airports.png)

arcgonaut is written in Go. It uses [Laurent Le Goff](https://github.com/llgcode)'s [draw2d](https://github.com/llgcode/draw2d) for the imaging tools and [Lucas Beyer](https://github.com/lucasb-eyer)'s [go-colorful](https://github.com/lucasb-eyer/go-colorful) for generating colors. The rest is a lot geometry/rescaling.

In this example the list in the middle corresponds to country names, the arc between names corresponds to the amount the first name is "sending" to the second name.

## Setup

You can install Go [here](https://golang.org/doc/install).

```sh
go get https://github.com/MaxHalford/arcgonaut
cd $GOPATH/src/github.com/MaxHalford/arcgonaut
go get
go build
```

## Usage

For the moment the tool is usable in the command-line.

- Naviguate towards the directory where the binary is.
- ``./arcgonaut -f=data/example.arcgo -c1=#ffc3e1``

![Example](examples/simple.png)

A PNG will be generated into the same directory. The program takes as input a file that has a [specific format](examples/data/simple.arcgo). The file extension doesn't matter. Tile has to be a list of lines where every line takes the shape "Steve>Alice>10" (Steve sends 10 to Alice).

## To do

- Add different file extensions
- Find a way to handle enormous data files.

## License

The MIT License (MIT). Please see the [license file](LICENSE) for more information.