How to mix bar and lines in Grafana in one chart - charts

How can I display one dataseries as bar and another as a line in one graph like it is used in the last comment of: see last picture

Short answer:
It's not possible (yet) using the Grafana UI, only by hand.
Long answer:
As far as I know there is no way of doing this using the UI switches; you'll have to use the use the "alias or regex" fields below the visualisation configuration.
Prepare your data
Before you start, make sure that your queries A and B retrieve actual data. You won't see your data otherwise and be confused why they're not showing.
Adding fields and values to the aliases
Once you are selecting the correct data you want to display, just add the following on the visualisation section of the graph at the 'alias or regex' fields:
Add 2 overrides, one for each value you want to display using the 'Add series override' button.
Add a "Bars:false" option flag and a "Lines:true" for the value you want as a line.
Be sure to use the exact opposite values for your bars ("Bars:true" & "Lines:false")
Add a 'Y-axis: 2' to the value you want to have on the right side of your graph.
Optionally, you can add a "Z-index: 3" for the value that you want to have on top (I added this option to the line to make sure it's always drawing on top of the bars).
Enjoy
You should now have a nice graph with 2 types of data and visualisations in one; something like this:

For those who were asking in the comment section, yes this isn't available in version 8, however, you can still change the time series visualization to graph(old) so you can set the alias/regex.

Related

Format output of formula field (which is used in charts etc.)

The output of my formula field is typically formatted like this:
Output of formula field
In my details I can switch this format to a number without any decimal points or thousand points:
Format in details without points
The problem is, that this changed format isnĀ“t displayed in the diagrams or cross tables later on:
Format failure in diagrams or cross tables
How can I fix this issue?
Thanks in advance!
Formatting charts can be confusing because of how varied the layout can be for each different type of chart. I find its is easier to format the display of a chart when you are previewing data on the chart because the layout for the chart in design view may not match what is output at runtime. While previewing the report you should be able to click on any value or label on the chart to select the object. You should see the four points around the object that allow you to resize the object once it is selected. Then you can right click on the object and select "Format Selected Object" or "Format Axis Label" on the menu. Then you should see a tab labeled "Number" where you will find options that allow you to control the formatting. The options found here will vary a little depending upon the object selected on the chart. If you need specific help with these options, it would be helpful if you could provide a screen shot of the window.

Dynamic Title In Tableau

Looking for a solution to how to show All in Dashboard or sheet title. Along with the Title i am adding Country Name in the title. It works perfectly for individual selection but when all countries are selected i need to show All rather than name of all the countries.
The alternative that gives you the most control is to create a worksheet that displays the text you want, and position this worksheet in place of the title on the dashboard.
Same goes for filters and legends. If you don't like how the stock ones behave, make a worksheet that looks and behaves as you prefer, and use that worksheet as a substitute for the stock filter or legend.
There is an easy fix, i had not selected show "All" Values from the customize filter drop down.

Tableau - Is there a way to drill down by clicking on the line?

I have the following chart
I have created a parameter called IO OR LINE with two values: IO and LINE
then created a computed item called IO DRILL DOWN which is defined as:
if ([IO OR LINE] == 'IO') then [IO] else [Line Item] end
where the IO and Line Item are two dimensions
In the parameter drop down, if I choose LINE, I will get the chart
My question: I want to do the operations above but by clicking on the blue line in the first chart which will drill down as shown in the bottom chart? I don't like the parameter drop down solution
You could get this effect by:
generating 2 identical dashboards, one with the single line and
the other with the detailed view
Set up a Filter Action for when you click on the blue single line it takes you to the other dashboard with the multi-lines. If the dashboards are exactly the same and the performance is quick, this will give you what you are describing but it's a bit of an illusion.
At first, I thought you could do this somehow with layout containers and filter actions, but I got stumped when it came down to hiding the original view. https://www.interworks.com/blog/dwyers/2012/05/10/using-layout-containers-hide-views-your-tableau-dashboard

Change line behavior of a combined chart in SAPUI5 VizFrame

I am using a combined chart (Stacked Column + Line) for my application. Is it possible to change the line plotting?. (somewhat like shown in RED in the image). If yes then how is it possible?
I'm sure you already know the VIZ documentation where you can find all possible properties of VizFrame. As far as I know there currently is no way to get the behavior you're asking for except for writing your own lineRenderer (vizProperties.plotArea.lineRenderer). There is one alternative line plotting mode available which is smoothening it but I'm sure thats not what you want.
However you could use a second series of column chart instead. Just use a standard column chart and add two data series instead of one. I think this would show the exact information you're trying to get with the current diagram just no connection between them.

Bokeh - How to use box tool without default selections?

I have built a bokeh app that allows users to select windows in data and run python code to find and label (with markers) extreme values within these limits. For ease of interaction, I use the box select tool for the range selection. My problem arises when repeating this process for subsequent cases. After markers are placed for the results, they are rendered invisible by setting alpha to zero and another case needs to be chosen. When the new select box includes previous markers, they become visible based on the selection. How do I override this default behavior? Can markers be made unselectable? or can I add code to the customJS to hide them after they are selected?
Thanks in advance for any help!
There are a few possible approaches. If you just want non-selected glyphs to "disappear" visually, you can set a policy to do that as described here:
http://docs.bokeh.org/en/latest/docs/user_guide/styling.html#selected-and-unselected-glyphs
Basically, for bokeh.plotting, pass
nonselection_fill_alpha=0.0,
nonselection_line_alpha=0.0,
as arguments to your plot.circle call or whatever. Or if you are using the low level bokeh.models interface, something like:
renderer.nonselection_glyph = Circle(fill_alpha=0.0, line_alpha=0.0)
But be aware (I think you already are) that the invisible markers are still there, and still selectable if the user happens to draw a box over them with the selection tool.
If you truly want only a subset of the data to be visible and selectable after a selection, I'd say you want to replace the data in the column data source wholesale with the subset in your selection callback.