Grafana stack line graph shows hidden series with value 0 - grafana

I am using a stacked Grafana line graph and has given the option of hiding the series for values with zeros.
But yet there is a line drawn in the stacked series for a metric with value 0 (line colored in yellow). It is not shown in the legend as configured. It is not visible even in the tooltip.
Is there a way to hide the graph as well?

You can just set line width to 0.

This is due to the queries for different series happen one after another and there can be instances where the queries return a different number of data points.
The above issue can occur when some additional data gets written into the database in between queries and some series may not have values towards the end of the timestamps (null values). Therefore Grafana shows this as a drop in the series.

I had the same confusion recently with one of my dashboards. There is an open bug with Grafana to not draw the lines for the 0 values, during the time frame that they are zero, so as not to hide other lines with value underneath.
See https://github.com/grafana/grafana/issues/15690#issuecomment-1276981815

Related

Why does AWS CloudWatch dashboard widget does not respect scales when drawing two lines?

I'm new to AWS and CloudWatch.
Here is a screenshot of a CloudWatch dashboard showing two parameters related to a Dynamo table.
As you can see in the pop-up the value of the sample for the orange timeseries is 2,252 while the value of the sample for the red timeseries is 7,000, yet the red chart is drawn under the orange chart. If you check the scale on the left, it seems the red series is the one that get drawn correctly, while the line of the orange one is somehow "inflated".
Can you please help me understand what is the reason behind this?
It looks like your mouse hover point data and the popup data are out of sync. Just a UI glitch.
The popup is showing 09:57 and probably on the chart at 09:57 those are the correct values.
The hover point you chose is a particular peak and is at what time? The last digit is cut off from the display but it's definitely not a 7! Looks like "09:50" maybe?
Minor UI glitch is my diagnosis.
Eventually I come up with this different set up, where one of the series has values mapped on the left Y-axis, while the other series has values mapped on the right Y-axis.
The main drawback is that the two series are not directly comparable, but at least the difference in value is more evident.

Tableau Logarithm worksheet displays inconsistently

I have a worksheet where I can show a logarithmic graph for 'ALL' partitions and get exactly what I want. However, if I select to display only a particular partition, the displayed results are Not the same. The only difference is that I have a filter to select individual partitions.
This is a problem both in Desktop, and also on the Tableau Server. Tableau Version 2019.2
Notice partition 8702. The Blue line should hover just above or on the yellow area.
Thank you.
FIG 1.
The ALL display.
FIG 2.
The 8702 partition selected only.
I turned on Show Mark Labels. Now I can see that on an item (1400) there is a order-qty (blue line is 13) while the yellow sales mark is 12. Those are converted-to log numbers, but I see the 13 (order-qty) IS greater than the sales number (12)...... It's just not converting the two graphs on the same scale. I think that's my problem. Maybe I am misusing the logrithmic chart. Am hoping I am making sense..
RESOLVED: Once I realized there was a problem with the scales being different. I found that if I right-click on the Edit Axis, I can set the axis to Syncronized. I did this for both Axis's of the chart.

Tableau - Fixed count of datapoints per pane

I'm trying to build a shewhart-style control chart in Tableau and having trouble with setting a fixed sample size for the data points plotted on the chart. Consistent sample sizes are critical for setting accurate control limits so I'm dead in the water until I can specify that tableau only use 10-30 random rows to calculate each point on the chart.
I thought I could accomplish this by returning a random number in my query and filtering on the top N results for each pane but I can't seem to wrap my head around how to actually execute that.

Grafana bar graph sorting, lower values not visible

I have a bar graph in Grafana (with InfluxDb). Its grouped by time and a tag. But I noticed that the large values are being drawn over the lower values.
Example below. You can see the points where the lower value bars are. I would expect that the lower values are drawn on top. Is this a setting?
Query:
Looking at your data it appears to be showing the time spent in each component of a request pipeline, so my suggestion would be to present them as stacked bars, which will better represent how each contributes to the total time spent.
You can enable stacked mode on the Display tab of the graph edit panel.
If you're more interested in seeing how each item compares to the others, then maybe a line or point plot would be easier to read, especially as superimposed bars will be be assumed to be stacked by most viewers.

Custom number format for y-axis on Chart

I have created a chart with 2 axes that acts as a panel chart (see image)
As a panel chart I only want to show the portions of the relevant y-axes to the chart next to them. For example, for the right-most y-axis I used a custom number format to exclude anything less than 0:
_(* #,##0_);_("";_(* 0??_);_(#_)
But for the left most y-axis, I'm stuck. I want to show -400 to positive 400. I've tried 2 different options, but neither is producing the desired effect.
[<0](#,##0);[>500000000]"";#,##0_)
[<0](#,##0);[<500000000]#,##0_);""
Here is the result I'm looking for:
I learned something new today (and a bit weird) regarding formats and chart axes
After some experimenting, this is what I ended up using:
[White][>500]_(#,##0_);(#,##0);0;
The odd part: When you change the Display Units of the axis (for me, millions), then the formatting no longer recognizes the original amount (500,000,000).
Once I figured that out, I was able to work out the solution.