How to do list agregation with histogram in Open Graph? - facebook-opengraph

I found in the documentation:
List: Help highlight a user's recent activity or favorite objects. Lists also have an associated histogram, shaded grey, that will automatically appear for each row displayed in the list.
But how to do histogram in list?

You don't 'do' the histogram, it's displayed in shaded blocks behind the list automatically when your published actions are displayed on a user's timeline in the aggregation units
See attached from my profile:

Your aggregation should contain {count} or some other aggregate unit in Caption Lines.
For example:
{count} times
After that list will become histogram.

Related

Tableau - Plotting multiple lines in one graph

I'm trying to plotting multiple lines in one single graph. I've combined two of them using dual axis, but I don't know how should I add another.
Thank you in advance for any help.
Since you have mentioned that you want to show multiple measures in one viz it means that one axis is sufficient for all these measures. Therefore, Instead of creating dual axis chart, do it like this-
Step-1 Build line chart with one measure.
Step-2 Drop another measure on the axis directly instead of rows/column shelf where you'll see a double bar icon like the screenshot.
step-3 Drop additional mesaures either in similar ways or onto measure values pane created automatically. See a demonstration screenshot below on sample superstore

How to edit legend labels in google spreadsheet plots?

I'm trying to plot some data in Google spreadsheet:
And as you may see all of the series are in a same column and I can't use the any of the rows as headers. My plot looks like this:
I would appreciate if you could help me know how I can edit/add legend labels.
Unfortunately I don't think the graphs were intended for your data format.
The only way I've been able to work out how to add a header is by reformatting my data so I have the header at the top of my ranges.
So I suggest you split your data into separate columns so you have;
D2:D4, E2:E4, F2:F4 etc with D1, E1, and F1 as your header and then selecting "Use row 1 as your headers." From the data menu.
Alternatively, you could add labels to the series themselves. Although not ideal, it could be quicker than reformatting your data. On the data menu, click on the three dots of a data series to bring up a menu that allows you to add a label. Unfortunately this needs to be a cell so you'll have to have that header on your sheet some where.
I had the same question this year (2021), and it looks like there's support for it now. In short, you just have to double-click on the empty legend item for the series, and it'll give you a place to put text, directly in the chart.
Here's what my chart looked like (with no series titles):
If you double-click on one, you'll get a small text input area.
Type in your series name and then press enter or click outside of the input area.
Repeat this for each series, and you should be good to go.
I had the same problem because I was selecting only the data I wanted to include in the chart and not the entire table, headers and all. When you create a chart in Google Sheets and you want to use a row or column (or both) as strings that are included in the chart's labeling, you must select the entire table before choosing the Chart command from the Insert menu.
After doing so, you may need to do all or some of the following:
Switch rows/columns if your axes are not correct
Eliminate any rows/columns that you don't want represented by editing the Data Range field in the chart editor
Select Use column A as headers or Use row 1 as headers
You could also potentially use the add labels option when clicking on the 3 dots in the series section:
Double-click on the symbols in your legend, then double-click on the symbol for the series you would like to label; you should be able to directly enter your legend label now. You can do further text formatting using the chart editor on the right.
I took them to a new sheet. first selected only the X-axis and one of the columns that will appear as one. label. In this sheet, I made all the "labels" as a header of the sheet. and added them one by one as a series. and this time it. add them as a label.
obviously this is a workaround and the bug should be fixed :) hopefully.

How to draw multi-lines from multiple queries in Kibana

I am new to Kibana and need some help.
I can draw this line chart for a single query (java):
Now I would like to another line for another query (for example python) in the same chart. I am not so sure how to do that. Also "Markdown widget" is the way to add a legend?
Any help would be appreciated.
It is possible by adding the followings:
X-Axis -> Split Lines -> Sub Aggregation -> Filters
In the filters, you can add multiple ones such as query:java, query:react and so on.
As far as data is from same index we should be able to do it.
Any chart visualization edit buckets configuration will have option to split line/chart using that you can do split lines.Here you can do split by attribute also if you want to go with date you can go with following steps in high level.
In Visualize, select Line Chart
For Y-Axis, select "Average", then select PRICE -- note, you can't plot the exact prices, it has to be some bucketing function
In X-Axis, select "Date Histogram", then select CHK_IN_DATE
Then select "Add Sub-Buckets", select "Split Lines", select "Terms", select "SOURCE_SITE_C"
You should get something similar to the screenshot below.
If your graph ends up being too messy with more lines than you expected, switch the order of steps 3 and 4 (or just use the arrow keys to switch the order of operations, see this blog80 for explanation)

How to make stacked histograms on kibana?

I have logs with different log levels and I want to design a date histogram like the one at the bottom of the picture :
At a particular date it should show say WARN logs with red and INFO logs above that with blue. Also I don't have log level indexed. But I do have INFO and WARN as saved searches.
As per my understanding you have a field wherein you can search for INFO & WARN and based on these searches, you want to build a stacked histogram as shown above.
The solution for the same is:
Click On Visualize Tab and Select Visualization Type as Vertical Bar Chart.
Select search source as From a New Search.
Then design your visualization by selecting buckets type as X-Axis and aggregation as Date Histogram with the required field such as #timestamp.
Then add sub-buckets as Split Bars and select sub-aggregation as Filters.
Mention the filter value as per search query. For example: log:INFO (In filter1) & log:WARN (In filter2).
You will get the resulting stacked Histogram. Also you can choose the color as required by clicking on the log:INFO label (towards the right of the histogram) and can choose your required color.

LocusZoom standalone change x-axis and use the plots in a script

I am using the standalone LocusZoom software,but I am having two problems:
I have to create a plot showing only position on the x-axis (not showing the genes). If I just use showGenes=FALSE with nothing else the genes still appear, but if I use rfrows=0 then the genes are not shown, but the problem is that also the x-axis label with the positions disappears. Is there a way to only show the position label? It looks like the only way to do this is to modify the original script...
Is there a way to use several plots created using LocusZoom in an R script to position many plots into one unique figure? (output is a pdf for now) There is an option listed in the LocusZoom webpage (http://genome.sph.umich.edu/wiki/LocusZoom_Standalone) called "prelude" but I cannot get more info on how to use it.
If you have any suggestions for either of these two issues it would be very helpful! Thanks!!

Resources