Skip to content

Line Graph for Non-Aggregates #1492

Answered by liammclennan
danielmackay asked this question in Help
Discussion options

You must be logged in to vote

It is not possible to plot the actual values with a grouping.

You can do what you want on the events page:

select @Timestamp, MarketPrice
from stream 
where MarketPrice > 0

Then click the 'View as timeseries' button.

Dashboards are always aggregated by time, so you have to supply an aggregate function. mean(MarketPrice) might be useful, or you can plot multiple values on a chart e.g. min(MarketPrice), mean(MarketPrice), max(MarketPrice).

select min(MarketPrice), mean(MarketPrice), max(MarketPrice)
from stream 
where MarketPrice > 0
group by time(1m)

Hope that helps.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@danielmackay
Comment options

@liammclennan
Comment options

Answer selected by danielmackay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants