xpng

package
v0.0.0-...-3241ae0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

* @Author: wangjun haodreams@163.com * @Date: 2024-07-05 14:37:50 * @LastEditors: wangjun haodreams@163.com * @LastEditTime: 2024-07-09 13:21:48 * @FilePath: \golib\trendpng\trendpng.go * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTrend

func CreateTrend(trend *TrendData) []byte

生成趋势

Types

type TrendData

type TrendData struct {
	Y      []float64 //值
	X      []string  //时间
	Max    float64
	Min    float64
	Title  string
	Legend string
	Png    []byte
}

趋势数据

func NewTrendData

func NewTrendData(vals []*opdb.Real, title, legend string) (t *TrendData)

生成趋势数据

Jump to

Keyboard shortcuts

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