Documentation ¶
Index ¶
- func DrawPieChartWithAPI(inputMap map[string]time.Duration, userName string) (string, error)
- func DrawPieChartWithLocal(inputMap map[string]time.Duration, userName string) (string, error)
- func GetUserChannelTimeMap(userID string) map[string]time.Duration
- func ShowCalHandler(targetID, msgID, authorID, guildID string, args ...string) (err error)
- type AnimationTime
- type AnimationType
- type ChartType
- type DrawChartLabel
- type DrawChartLegend
- type DrawChartTitle
- type DrawPieAPICtx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrawPieChartWithAPI ¶
DrawPieChartWithAPI 本地获取频道的时间分布
@param inputMap @param userName @return string
Types ¶
type ChartType ¶
type ChartType string
ChartType 图表类型 p: 2 dimension pc: more than 1 dimension pd: donut
type DrawChartLegend ¶
DrawChartLegend 画图标签
type DrawChartTitle ¶
DrawChartTitle 画图标题
type DrawPieAPICtx ¶
type DrawPieAPICtx struct { Ct ChartType // bvs,p,ls Title DrawChartTitle Label DrawChartLabel Legend DrawChartLegend Data []string IsDivided bool Color string Size string }
DrawPieAPICtx 画饼图的上下文
func (*DrawPieAPICtx) BuildRequestURL ¶
func (ctx *DrawPieAPICtx) BuildRequestURL() string
BuildRequestURL 构建请求URL
@receiver ctx @return string
Click to show internal directories.
Click to hide internal directories.