add more symbol
continuous-integration/drone/push Build is passing Details

master
dustoair 3 years ago
parent a5dae33390
commit 08f9c177ba

@ -26,10 +26,14 @@ func getRand(len int) []float64 {
}
func Draw() {
timeUpdate, symbolPrice := api.GetSerivers("ETHUSDT")
log.Println(timeUpdate, symbolPrice)
timeUpdate, symbolPriceETH := api.GetSerivers("ETHUSDT")
timeUpdate, symbolPriceBTC := api.GetSerivers("BTCUSDT")
timeUpdate, symbolPriceBNB := api.GetSerivers("BNBUSDT")
log.Println(timeUpdate, symbolPriceETH)
values := [][]float64{
symbolPrice,
symbolPriceBTC,
symbolPriceETH,
symbolPriceBNB,
//getRand(30),
//getRand(30),
//getRand(30),
@ -44,9 +48,9 @@ func Draw() {
charts.XAxisDataOptionFunc(timeUpdate),
//charts.XAxisDataOptionFunc(getLastDays(30)),
charts.LegendLabelsOptionFunc([]string{
"BTC",
"ETH",
//"ETH",
//"BNB",
"BNB",
//"TRX",
}, "150"),
func(opt *charts.ChartOption) {

Loading…
Cancel
Save