I'm trying to display a timeseries data as a bar chart but Grafana complains about
Bar charts requires a string field
This is my query:
SELECT COUNT(footage_type) as _count_, BIN(time,24h) AS DAY FROM "footage"."footage" WHERE footage_type='VIDEO' group by BIN(time,24h) order by DAY
This is how my data looks in table form:
In timeseries form
But this happens in bar chart mode:
Likewise, the timestamps disappear in histogram mode:
What am I doing wrong ?
For those looking for an answer, it's quite simple, just change to bars.
Related
I have a Pie Chart that is showing incorrect data but I do not know how to correct it. It is showing Orders that have been shipped either Late or On Time. The problem is I have 1 order where part of it was shipped on time and the other part was late, therefore it is appearing in both groups as you can see in the image. I just want it to appear once like the first table in the image but I cannot do this in a Pie Chart as I need to group it by ActualOnTime field, but when it does that it duplicates it.
What can I do to resolve this issue?
I have a data looks like that
i would like to create a side by side bar chart (will be three bars per each month) one bar to shows the count of orders created during month, the other will be the count of orders dispatched during this month and the third will be count of orders received during this month. the point is that I have to show the values based on the year that the user will choose from a filter.
i can do each measure as one chart but i tried to do it in one side by side bar but i couldn't ... can you please help me
here is the work book
https://community.tableau.com/thread/333776
See this thread create side-by-side bar chart in Tableau
Pivot three fields with dates and it will solve your problem
I'm using Grafana to chart Prometheus data. I have a set of data in gauges and it's displaying just fine on line charts. When I try and use a pie chart it only seems to show the most recent data point, not the sum for the whole time range selected in the dashboard.
I'm trying this:
sum(successful_requests)
Is there something I need to do to get it to sum all the data in the time range?
Thanks,
Ian
Ok - I just figured it out thanks to an article about sum_over_time. You can do it like this:
sum(sum_over_time(total_requests[$__interval]))
The outer sum is good if you are trying to aggregate multiple series together, otherwise you can do without:
sum_over_time(total_requests[$__interval])
Ian
I am trying to create a side-by-side bar chart where one set of bars is a count of open tickets by each week and the other set is the count of closed tickets by each week. The fields are all in a flat table.
For example, if 17 tickets were opened during week 2 (week beginning Sunday, 1/03/2016) and 14 were closed that same week (regardless of when they were created), I'd like to graph those on the same bar chart.
I am using the Week(Opened) function for the dimension of the first set and Week(Closed) as the dimension of the 2nd set. These work fine on separate bar charts. However, there is no common dimension whereby I can put them on the same chart.
I'd like to add a line to the chart as depicted in the 1st screen shot. This line is on a third scale/dimension.
I have tried a Master Calendar but my results are erroneous possibly due to the fact I have two date dimensions.
Sample Bar Chart with line added
Sample data screen capture
You will need to create a canonical date field - the full details can be found here.
https://community.qlik.com/blogs/qlikviewdesignblog/2014/02/17/canonical-date
Essentially you generate a single calendar table from the two date fields and then use the new date generated in your charts.
I'm working on Tableau for rainfall data.
I have a cumulative rainfall data for a year (and the months respectively) of different cities.
And I prepared a tableau barchart for the annual rainfall data.
So, if I hover/click my cursor on any of the bar then a line chart which carries the months of that particular city need to be visualized.
Please suggest.
You have to using compulsory Action Filter.
choose dashboard menu -> Action->add action.
Create another worksheet with the line chart month view you would like to see.
Then go to Worksheet>Actions>
Add Action > Filter and Select how you want it to run (hover/select)
Select your new worksheet as the target sheet
Target filters on the year which displays the months you want in the new view
You might need to mess around with these setting to get it how you want exactly but an action is the way to go.