chartcontrib

package module
v0.0.0-...-0afed1b Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2017 License: MIT Imports: 5 Imported by: 0

README

go-chart-contrib

Go Report Card

contribute some missing(?) features to the github.com/wcharczuk/go-chart library

Installation

> go get -u github.com/arnehilmann/go-chart-contrib

Features

ContinuousRange with nice Ticks on YAxis

specify the desired linespacing, and ContinuousRangeWithTicksLinespacing(float64) will create a Range object with nice intervalls. These intervalls are considered as nice: .5, 1, 2, 2.5, 5, 10

see some sample output with different linespacings

…

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContinuousRangeWithTicksCount

func ContinuousRangeWithTicksCount(count int) chart.Range

ContinuousRangeWithTicksCount renders "nice" ticks on a YAxis, depending on the count parameter. the actual tick count depends on the min/max values of the axis.

func ContinuousRangeWithTicksLinespacing

func ContinuousRangeWithTicksLinespacing(linespacing float64) chart.Range

ContinuousRangeWithTicksLinespacing renders "nice" ticks on a YAxis, depending on the linespacing parameter. the actual linespacing depends on the min/max values and the height of the axis.

Types

This section is empty.

Jump to

Keyboard shortcuts

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