plot

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DotWidth = 3 // 点的宽度
)
View Source
const (
	// ResourcesPath 资源路径
	ResourcesPath = "fonts"
)

Variables

View Source
var (
	ColorRed   = drawing.Color{R: 0xFF, G: 0x00, B: 0x00, A: 0xFF} // 红色
	ColorGreen = drawing.Color{R: 0x00, G: 0xFF, B: 0x00, A: 0xFF} // 绿色
	ColorBlue  = drawing.Color{R: 0x00, G: 0x00, B: 0xFF, A: 0xFF} // 蓝色
)
View Source
var (
	DashedLine = []float64{5.0, 5.0} // 虚线
)

Functions

func AddSeries added in v0.4.2

func AddSeries(graph chart.Chart, series ...chart.Series) chart.Chart

func CreateChart added in v0.4.2

func CreateChart() chart.Chart

func DefaultFont added in v0.4.3

func DefaultFont() *truetype.Font

DefaultFont 默认字体

func GetDefaultFont

func GetDefaultFont() (*truetype.Font, error)

GetDefaultFont returns the default font (Roboto-Medium).

func ImageContent added in v0.4.0

func ImageContent(c chart.Chart) (string, error)

func OpenImage added in v0.4.0

func OpenImage(c chart.Chart) error

OpenImage TODO: 打开chart有点问题, 原因可能是生成的URL过长

func OpenURL added in v0.4.0

func OpenURL(url string) error

OpenURL 用系统默认的浏览器打开一个url

func Render added in v0.4.2

func Render(graph chart.Chart, code string)

func SeriesIndex

func SeriesIndex(s pandas.Series) []float64

Types

This section is empty.

Jump to

Keyboard shortcuts

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