chart

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAD = "Power By https://github.com/haozibi/leetcode-badge"
)

Variables

This section is empty.

Functions

func ShowRankHistory

func ShowRankHistory(w io.Writer, ranks [][]RankHistory, names ...string) error

ShowRankHistory show ranking history 使用 ContinuousSeries 底层还是 float64,如果没有设置 Tick 则程序自动设置 自动设置是根据最大值和最小值然后取一定的间隔,导致 x 轴显示并不是所需要的 https://github.com/wcharczuk/go-chart/blob/45fad0cfb8e64e6314abeeaf381102aad6d9279c/tick.go#L47 chart 至少需要两个数据

func ShowSolvedHistory

func ShowSolvedHistory(w io.Writer, solved [][]SolvedHistory, names ...string) error

ShowSolvedHistory show solved history

Types

type RankHistory

type RankHistory struct {
	UserName string
	Date     time.Time
	Rank     int
}

type SolvedHistory

type SolvedHistory struct {
	UserName string
	Date     time.Time
	Num      int
}

Jump to

Keyboard shortcuts

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