gocharts

module
v2.8.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2023 License: MIT

README

GoCharts

Build Status Go Report Card Used By Docs SLOC License

GoCharts is a library to assist with building charts, by directly working with charting libraries, generating tabular data for Excel XLSX files and CSV files, or to transfer data to/from analytics solutions like Metabase and SimpleKPI.

It includes two sets of packages:

  1. data structures to generically hold and manipulate different types of data
  2. chart library helpers to make generating charts eaiser, often times using data structures mentioned above

Data Structures

Commonly used data structures include:

A full list is available in the data folder.

Chart Helpers

quicktemplate is used for rendering some of the charts.

An example chart is the Rickshaw chart shown below:

Collections

Data collections are provided in the collections folder for the primary purpose of providing example data to run in the examples. Currently, cryptocurrency data from Yahoo! Finance is included.

Installation

$ go get github.com/grokify/gocharts/v2/...

Usage

See the example here:

charts/rickshaw/examples/report.go

Directories

Path Synopsis
charts
c3
c3/c3sts
c3sts is a package for creating C3 charts from statictimeseries data.
c3sts is a package for creating C3 charts from statictimeseries data.
data
roadmap
roadmap provides data for generating roadmaps
roadmap provides data for generating roadmaps
roadmap2
roadmap2 represents a simplified set of data structures to represent a roadmap.
roadmap2 represents a simplified set of data structures to represent a roadmap.
table
table provides a struct to handle tabular data.
table provides a struct to handle tabular data.
table/tabulator
tabulator provides helper methods for rendering HTML with Tabulator (http://tabulator.info/)
tabulator provides helper methods for rendering HTML with Tabulator (http://tabulator.info/)
timeseries
timeseries provides tools for adding and formatting static time series data for reporting purposes.
timeseries provides tools for adding and formatting static time series data for reporting purposes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL