ilgizar-candlestick-panel icon indicating copy to clipboard operation
ilgizar-candlestick-panel copied to clipboard

"No data points"

Open ansumanm opened this issue 4 years ago • 3 comments

My query:

"q=SELECT first("ltp") AS "open", last("ltp") AS "close", min("ltp") AS "low", max("ltp") AS "high", difference(last("vtt")) AS "volume" FROM "ZFeedFull" WHERE ("symbol" =~ /^BANKNIFTY20JULFUT$/) AND time >= 1594957500000ms and time <= 1594979999000ms GROUP BY time(5m) fill(linear)"

Screenshot 2020-07-19 at 2 11 39 AM

If I change panel to graph, I get data: Screenshot 2020-07-19 at 2 12 47 AM

My grafana version is 6.4

ansumanm avatar Jul 18 '20 20:07 ansumanm

Hello,

I have same "no data points" issue using prometheus.

Thank you, best regards, Emanuele

asnakep avatar Jan 17 '21 11:01 asnakep

Hi...

Me too .. to get data inside influx

Screen Shot 2021-02-02 at 19 57 10

SELECT first("open_price") FROM "trade_candle" WHERE ("coin" = 'BTCUSDT') AND time >= now() - 6h GROUP BY time(5m) fill(linear);SELECT last("close_price") FROM "trade_candle" WHERE ("coin" = 'BTCUSDT') AND time >= now() - 6h GROUP BY time(5m) fill(linear);SELECT max("high_price") FROM "trade_candle" WHERE ("coin" = 'BTCUSDT') AND time >= now() - 6h GROUP BY time(5m) fill(linear);SELECT min("value") FROM "trade_candle" WHERE ("coin" = 'BTCUSDT') AND time >= now() - 6h GROUP BY time(5m) fill(linear);SELECT max("volue") FROM "trade_candle" WHERE ("coin" = 'BTCUSDT') AND time >= now() - 6h GROUP BY time(5m) fill(linear)

Grafana Version: v7.3.7 (1e261642f4)

wscardua avatar Feb 02 '21 22:02 wscardua

This should be 4 separate requests, one for each value ('open', 'close', 'high', 'low'), rather than getting 4 values in one request. And aliases of column should be exactly 'open', 'close', 'high', 'low' - that is hardcoded in source. Its works for me for timescale source.

Grafana Version: 8.0.5

Erraen avatar Jul 23 '21 12:07 Erraen