https://github.com/vdobler/chart
Provide basic charts in go
https://github.com/vdobler/chart
Last synced: 10 months ago
JSON representation
Provide basic charts in go
- Host: GitHub
- URL: https://github.com/vdobler/chart
- Owner: vdobler
- License: bsd-3-clause
- Created: 2011-06-27T12:19:42.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2021-06-03T05:17:13.000Z (over 4 years ago)
- Last Synced: 2024-07-31T20:52:49.172Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 3.63 MB
- Stars: 771
- Watchers: 42
- Forks: 105
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / HTTP Clients)
- fucking-awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / HTTP Clients)
- awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / HTTP Clients)
- awesome-go-zh - chart
- fucking-awesome-go - :octocat: chart - Simple Chart Plotting library for Go. Supports many graphs types. :star: 321 :fork_and_knife: 46 (Science and Data Analysis / Advanced Console UIs)
- awesome-go-cn - chart
- awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (<span id="科学和数据分析-science-and-data-analysis">科学和数据分析 Science and Data Analysis</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go-cn - chart
- awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / HTTP Clients)
- awesome-go - chart - Provide basic charts in go - ★ 519 (Science and Data Analysis)
- awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / HTTP Clients)
- awesome-go-cn - chart
- awesome-go-plus - chart - Simple Chart Plotting library for Go. Supports many graphs types.  (Science and Data Analysis / HTTP Clients)
- awesome-go-with-stars - chart - 06-03 | (Science and Data Analysis / HTTP Clients)
- awesome-go - chart - | - | - | (Science and Data Analysis / HTTP Clients)
- awesome-go-extra - chart - 06-27T12:19:42Z|2021-06-03T05:17:13Z| (Science and Data Analysis / HTTP Clients)
- awesome-go-cn - chart
- awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / HTTP Clients)
- awesome-Char - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / HTTP Clients)
- zero-alloc-awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / HTTP Clients)
- awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / Advanced Console UIs)
- awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. (Science and Data Analysis / HTTP Clients)
- awesome-go - chart - Simple Chart Plotting library for Go. Supports many graphs types. - :arrow_down:98 - :star:353 (Science and Data Analysis / HTTP Clients)
README
Charts for Go
=============
Basic charts in go.
This package focuses more on autoscaling, error bars,
and logarithmic plots than on beautifull or marketing
ready charts.
## Examples

## Chart Types
The following chart types are implemented:
* Strip Charts
* Scatter / Function-Plot Charts
* Histograms
* Bar and Categorical Bar Charts
* Pie/Ring Charts
* Boxplots
## Some Features
* Axis can be linear, logarithmical, categorical or time/date axis.
* Autoscaling with lots of options
* Fine control of tics and labels
## Output / Graphic Formats
Package chart itself provideds the charts/plots itself, the charts/plots
can be output to different graphic drivers. Currently
* txtg: ASCII art charts
* svgg: scalable vector graphics (via github.com/ajstarks/svgo), and
* imgg: Go image.RGBA (via code.google.com/p/draw2d/draw2d/ and code.google.com/p/freetype-go)
are implemented.
For a quick overview save as xbestof.{png,svg,txt} run
```bash
$ example/example -best
```
A fuller overview can be generated by
```bash
$ example/example -All
```
## Quirks
* Style handling (especialy colour) is a bit of a mess .
* Text based charts are cute. But the general graphics would be much easier without.
* Time handling code dates back to pre Go1, it should be reworked.