vp

package
v0.0.0-...-a1b16c7 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

virtual progress chart

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(data, templatePath, savePath string, imgBytes []byte) (e error)

func FillCellInfo1

func FillCellInfo1(f *excelize.File, d *Data, i, info1Index int)

func FillCellInfo2

func FillCellInfo2(f *excelize.File, d *Data, i, info2Index int)

func Test

func Test()

Types

type Data

type Data struct {
	ChartProps struct {
		XDelta int `json:"XDelta"`
		Nodes  []struct {
			Name string  `json:"name"`
			X    float64 `json:"x"`
			Y    int     `json:"y"`
		} `json:"nodes"`
		TotalDays int     `json:"totalDays"`
		H         int     `json:"h"`
		W         int     `json:"w"`
		TagAng    float64 `json:"TagAng"`
	} `json:"chartProps"`
	Marking []struct {
		Name   string `json:"Name"`
		Childs []struct {
			Name    string `json:"Name"`
			Percent string `json:"Percent"`
		} `json:"Childs"`
	} `json:"marking"`
	BasicInfo []struct {
		Title  string `json:"Title"`
		Childs []struct {
			K string `json:"k"`
			V string `json:"v"`
		} `json:"Childs"`
	} `json:"basicInfo"`
	BasicInfo2 []struct {
		Title  string `json:"Title"`
		Childs []struct {
			Title  string `json:"Title"`
			Childs []struct {
				K string `json:"k"`
				V string `json:"v"`
			} `json:"Childs"`
		} `json:"Childs"`
	} `json:"basicInfo2"`
	Progress []struct {
		Name   string `json:"Name"`
		Childs []struct {
			Name    string `json:"Name"`
			Percent string `json:"Percent"`
			Date    string `json:"Date"`
		} `json:"Childs"`
	} `json:"progress"`
}

Jump to

Keyboard shortcuts

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