chart

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeHistChart

func MakeHistChart(list *HistList, title, outPath string) error

Types

type HistData

type HistData struct {
	Period       date.Period
	Cases        float64
	Deaths       float64
	Hospitalized float64
}

HistData class

type HistList

type HistList struct {
	// contains filtered or unexported fields
}

HistList class is list of HistData

func New

func New(start, end date.Date, step int, elist *entity.EntityList) *HistList

New functions return new HistList instance.

func (*HistList) Data

func (hl *HistList) Data(i int) *HistData

Data method returns HistData in list.

func (*HistList) Size

func (hl *HistList) Size() int

Size method returns list size.

Jump to

Keyboard shortcuts

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