Is there a way to hide the legend for totally null series in the Grafana panel? - time-series

What Grafana version and what operating system are you using?
Grafana version: Grafana v9.3.6 (978237e7cb)
Operating system: Windows
Browser: Chrome
What are you trying to achieve?
I query a database and each column that is returned is an item in the legend. All data is grouped by a name attribute (that’s why the names are repeated in the legend). However, data represented by blue, yellow, and red colors may return null.
enter image description here
When the series of these data is null, I would like their legend not to be displayed and that they also not appear in the tooltip.
Information to take into consideration: the name of the legends is the same as I need all the series that have the same name to be displayed when clicking to filter in the legend. For example, assuming there is no null data, if I click on any AAA legend, all AAA series should be on the chart. Like the following picture:
enter image description here
What I've tried so far?
Reading documentation and forums. But I didn’t find any solution unfortunately.
I’ve also tried adding a hidden override property to the blue AAA legend, for example. I added a new override, selected “Fields with name” and selected AAA. Then I added a property “Series > Hide in area” and marked “legend”. However, in this case, the filter by legend stopped working as I described earlier.
Help please!
Does anyone know how I can hide the legend and tooltip data when the series is totally null?

Related

Hide some Legend Items in Line Chart

I have my line chart showing all the data properly, including some annotated values which are meant to act as the label in the last data point for the lines. I wanted to do it this way so that I don't have to show literally every data label for every data point.
I have everything working correctly, but I noticed I am unable to remove the annotated legend item without removing the series. By removing the series, I lose the label. Below is my chart.
As you can see, the last data points are working as labels (1092 for example). The problem is you can also see each annotated item in the legend (the colored dashes with no text next to them). How can I only show the legend items for Gained (green), Lost (red), Net (gained - lost) (yellow), and Total (blue), without the other dashes? Is this doable?
I am also open to seeing if there is another way to have only the last data point have a data label in Google Sheets. I was just working off of this tutorial.
Below is a screenshot of some of my data rows in an accompanying sheet.
as long as the annotation column is specified as 'Label' for the primary column you shouldn't be seeing the former in legend

Google Sheets: How Do I Colour A Cell In 2 Cases Context Based on Values From Another Sheet

I'm trying to create a heads up display on the number of Hints a user has collected in a contest.
There are different categories of hints here.
So I'm trying to create a process such that in the respective Hints tab (ie Bonus Hint in this case)
Filling in Column B (with the hint description), renders that Hint as being "obtained" and hence showing up "Green" in my Hints Overview sheet.
However, for "unobtained" hints, by not filling in Column B, I want my Hints Overview to instead still show the Hint number but in light gray (as illustrated below)
I dont want the unobtained hints to be empty cells. I want to make them looked grayed out. ^^^
I tried pulling some conditional formatting tricks like indirect(), ISBLANK() but something about CF just doesn't allow me to get what I desire.
And the other challenge is that because I arranged my headsup-display to be grid-like, the cell filling has to take on horizontal filling. Its not like as I can simply drag and fill 250 rows vertically.
How can I pull these things off in Google Sheets? (trust you guys to please dont maliciously edit my sheet out of mischief)
https://docs.google.com/spreadsheets/d/1IG6l0xkJSU-mxP6YVr73RwinEcdxSePI4HN02KF-WoA/edit?usp=sharing
delete everything in DASHBOARD!D8:AB17
use this in D8:
=SEQUENCE(10, 25)
remove your green CF rule and set the font to gray
now add this new CF rule as custom formula:
=INDEX(VLOOKUP(D8, {ROW(INDIRECT("BONUS!B2:B"))-1, INDIRECT("BONUS!B2:B")}, 2, 0))<>""
and set background to your green and font to white
also change DASHBOARD!AD17 to:
=COUNTA(BONUS!B2:B251)

I need to create a KPI in NetSuite. "Items Received Per Week KPI"

I need to create a KPI in NetSuite. "Items Received Per Week KPI", any help? I need this graph and it is not providing a metric to create a graph.
Use a saved search to get the "Item Received per week"
source the results of that saved search into a new custom KPI.
Then you will need a trend graph, below steps are mentioned to set up trend graph portlet
To set up a trend graph portlet:
Click Personalize in the upper right corner of a page or in the Settings portlet.
On the Standard Content tab of the Personalize Dashboard palette, click a Trend Graph icon or drag it onto the dashboard. You can see the number of available trend graph portlets by hovering over the icon.
Click Set Up in the trend graph portlet’s menu.
Select standard or custom KPIs from the KPI dropdown list. You can select a maximum of three KPIs.
Important Custom KPIs are only available in trend graph portlets on pages that include a Key Performance Indicators portlet.
You can also edit the following settings:
In the Custom Portlet Title field, enter a title for the portlet.
Select from the Default Chart Type list to set the default chart type displayed in this portlet.
Chart type options are Area, Line, Bar, and Column.
You can click thumbnails in the portlet itself to dynamically change its chart type from the default set here.
Setting Up Trend Graph Portlets
In addition to the set of four chart type thumbnails on the left, each trend graph portlet includes two thumbnails that you can click to choose either a continuous or side-by-side comparison of data in the trend graph.
If you selected a custom KPI, select a saved search from the Default Trend Type dropdown list. If a saved search is not available, or returns an error when you select it, its definition may not meet requirements for trend graph display. For information, see Displaying Custom KPI Results in Trend Graphs
Select from the Trend Type list to indicate whether the graph's x-axis time scale should be daily, weekly, monthly, quarterly, or yearly. You also can set this option by selecting from a dropdown list in the portlet.
Check the Show Moving Average box to display a dotted line in the trend graph, representing the rolling average of KPI data values. This option is enabled by default.
In the Period to calculate moving average field, enter the number that represents the window of data you want to average based on the date range selected in the Trend Type field. For example, if you select monthly and enter 3 as your window, each data point on your y-axis will represent a 3 month average.
Check the Show Last Data Point box to display the most recent KPI data point in the trend graph. Because the last point may not provide complete data, you may want to exclude this point from the graph to avoid a misleading display. This option is enabled by default.
Check the Include Zero on Y-Axis box to set the first y-axis value for the trend graph to zero, rather than to the initial KPI data point. This option is disabled by default, to avoid showing misleadingly dramatic increases in initial trend graph data.
Select from the Chart Theme dropdown list to set a look and feel for chart data:
Global Theme – uses the chart theme set at Home > Set Preferences (the default). See Personal Preferences for Appearance.
Basic – provides limited color contrast.
Colorful – provides more color contrast.
Match Color Theme - Bold – harmonizes with your choices in the Colors section of the Set Preferences page using bolder shades.
Match Color Theme - Light – harmonizes with your choices in the Colors section of the Set Preferences page using lighter shades.
In the Custom Series Color field, enter a hexadecimal value for a custom color you want to use for the chart. (Note that this option is provided for backwards compatibility with custom chart colors defined prior to the introduction of chart themes in Version 2012 Release 2.)
Select from the Background Type dropdown list to set the display behind chart data:
Global Background – uses the background type set at Home > Set Preferences (the default).
Lines – provides lines that demarcate different levels along the Y-axis.
Bands – provides bands that demarcate different levels along the Y-axis.
Grid – provides a grid all throughout the Y-axis.
When you are done, click Save. The portlet refreshes itself.
Note that each trend graph portlet includes menu options to print the chart, to download it to a PNG, JPG, PDF, or SVG file, and to export its data to a CSV file.
Please let me know how this goes!

Combining Google Combo chart with 2 values with line chart

So I have 3 values which are, Percent, Target, and Overtime.
I want to show on the chart the percent with overtime as one stacked column chart, but for the target, I want to make it show as one line as it will be like a fixed value.
I have tried a lot but it didn't work for me at all. Does anybody have any idea how to get this working, please?
Here is the sheet for the chart: https://docs.google.com/spreadsheets/d/1pSyWYMzDFGDNkDTfv1LMurcsvrN6bx3GjxVbmqFijk8/edit#gid=0
Is this were you looking for?
Chart editor: in Customize tab on Series setting you can change each one of [Percent,Target,Overtime] specifically to be type [line, column, or more] to make combo chart
I hope it'll help you

Total and percentage for each column in a line and stacked column chart

I need to show in one single bar chart the number of elements of each column and also its percentage regarding the total.
With a Line and stacked columns chart, I reach this:
However, the tooltip option, on the line, shows me only one value, and I need to get both of them. I mean, not only that 32 but also the percentage corresponding to that value.
Is there a way to get this? maybe another chart?
OK. I understand the question now. Unfortunately, this isn't currently possible.
From Microsoft Community Support,
This is an expected behavior. The tooltips only show when you hover over a column data point in combo chart.
This has been submitted as an idea for Microsoft to address. Please vote and/or comment here:
Combo Charts: How to add tooltip on line

Resources