Documentation
ΒΆ
Overview ΒΆ
nolint: mnd
Index ΒΆ
Examples ΒΆ
Constants ΒΆ
View Source
const ( DefaultBorderWidth = 2 DefaultLineWidth = 2 DefaultTitleSize = 80 DefaultWidth = 800 DefaultHeight = 600 )
Variables ΒΆ
View Source
var ( DebugTitle = canvas.RGBA(255, 0, 0, 0.2) DebugChart = canvas.RGBA(0, 0, 255, 0.2) )
nolint: gochecknoglobals, mnd
View Source
var DefaultFonts = NewDefaultFonts()
nolint: gochecknoglobals
Functions ΒΆ
func ShuffleSlice ΒΆ
Example ΒΆ
package main
import (
"fmt"
"github.com/xuender/chart"
)
func main() {
slice := []int{0, 1, 2, 3, 4, 5, 6, 7, 8, 9}
fmt.Println(chart.ShuffleSlice(slice, 2))
fmt.Println(chart.ShuffleSlice(slice, 3))
fmt.Println(chart.ShuffleSlice(slice, 5))
}
Output: [0 2 4 6 8 1 3 5 7 9] [0 3 6 9 1 4 7 2 5 8] [0 5 1 6 2 7 3 8 4 9]
Types ΒΆ
type Builder ΒΆ
func (*Builder[K, V]) WidthDebug ΒΆ
func (*Builder[K, V]) WithBorderWidth ΒΆ
func (*Builder[K, V]) WithDisplayBorder ΒΆ
type Chart ΒΆ
type Fonts ΒΆ
type Fonts struct {
// contains filtered or unexported fields
}
func NewDefaultFonts ΒΆ
func NewDefaultFonts() *Fonts
type Layout ΒΆ
func DefaultLayout ΒΆ
Source Files
ΒΆ
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
_examples
|
|
|
border
command
nolint: mnd
|
nolint: mnd |
|
debug
command
|
|
|
line
command
nolint: mnd
|
nolint: mnd |
|
line2
command
nolint: mnd
|
nolint: mnd |
|
tile/cairo
command
|
|
|
tile/floret
command
|
|
|
title
command
nolint: mnd
|
nolint: mnd |
Click to show internal directories.
Click to hide internal directories.