charts

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 6 Imported by: 0

README

charts

图表相关工具

依赖

Documentation

Overview

Package charts 图表工具

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Render

type Render interface {
	Render(rp chart.RendererProvider, w io.Writer) error
}

Render 输出图表.

type Simple

type Simple struct {
	Title string // 标题
	// contains filtered or unexported fields
}

Simple 简单图表.

func NewSimple

func NewSimple(title string, font *truetype.Font) *Simple

NewSimple 新建简单图表.

func (*Simple) Add

func (s *Simple) Add(data ...string)

Add 增加数据.

func (*Simple) AddOne added in v1.0.0

func (s *Simple) AddOne(data string) (k string, v float64)

func (*Simple) Bar

func (s *Simple) Bar() Render

Bar 柱状图.

func (*Simple) Chart

func (s *Simple) Chart() Render

Chart 创建图表.

func (*Simple) Graph

func (s *Simple) Graph() Render

Graph 曲线图.

Jump to

Keyboard shortcuts

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