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

Loading…
Cancel
Save