Tree Xie

Results 169 comments of Tree Xie

@backnono 已支持自定义Y轴的值展示,自定义转换函数即可: ```go func(opt *charts.ChartOption) { opt.ValueFormatter = func(f float64) string { // 自定义将f(float64)转换为string即可 return "" } }, ```

@leslieDD legend可以设置top的位置以及padding,通过指定此属性可以调整位置。Y轴的展示晚点支持

通过设置如下属性,效果如图,如果还有问题需要完整的示例代码贴出来。 ```go func(opt *charts.ChartOption) { opt.Title.Left = charts.PositionCenter opt.Legend.Padding = charts.Box{ Top: 50, Bottom: 10, } } ```

自定义属性放在最后的函数处理,因为默认的OptionFunc都有可能会有默认的覆盖值

main分支最新代码可以可以label是否展示,代码如下: ```go func(opt *charts.ChartOption) { opt.Legend.Padding = charts.Box{ Top: 5, Bottom: 10, } opt.SeriesList[0].Label.Show = true }, ```

I want to use pingora as a reverse proxy module, I don't want to restart the program by way to load the new configuration. So I just need to close...

I try to proxy `http://localhost:6018/` to `https://www.baidu.com/`, set `HttpPeer::new(("120.232.145.185", 443), true, "www.baidu.com")`.