Grafana 8 sort legend - sorting

Before grafana 8 (i'm using it in combination with influxdb) it was possible to sort legend values, like this:
Starting from version 8 in new charts I don't see such option:
Is it possible to achieve this option on version 8?

Seems the new "Timeseries" Graph can't do it (yet?).
However you can select "Graph (old)" which still has this functionality.

Related

Treemap in Kibana

Is it possible to create a treemap in Kibana? Treemap is not among the visualizations types shown in the visualize tap. I am using Kibana 5.5. Is there a plugin out there?
There is an issue in Kibana asking for this (you might want to go in and give it a thumbs up to increase the chances of it being prioritized):
https://github.com/elastic/kibana/issues/11790
There is also a non-official visualization created by bgeVam: https://discuss.elastic.co/t/bgevam-kibana-treemap-visualization/165892

Kibana - Create line Chart on Bar Chart in Same graph

I am a newbie in Elastic Stack and i am trying the following and i am struck.
I want to render a line chart on the bar chart on same graph. I have been browsing for long time now but could not find any link for this.
In Kibana 5.2, is it possible to create a line chart on bar chart on same graph ? Can someone who has done it in the past confirm if it is feasible ?
if yes, can you share any pointers.
If you want to mix bars and lines it's possible via the Timelion plugin (which is included in Kibana since version 5). Put something like this in the Timelion tab:
.es(*).bars(),.es(*).lines()
And you should be able to see something like:
Now it's just a matter of doing the query you want to plot.
For understanding it in detail, on Timelion tab, on top right corner, you will see a tab - Docs. Once you click on Docs, you will get a link - Go to Tutorial.
Try the link and it walks you through the steps.

In kibana, how to modify output text colour in metric visualization by condition

I'm using kibana 4, i need metric visualization which should provide result text in red color if it not meet my condition.
Example: if lastest update of log is not current date, it should show the date in Red color. Is it possible to add colour attribute with condition?
Kibana doesn't support this functionality out-of-the-box. Instead, you'll need to write your own visualization (plugin). You can get an idea of how to do this by looking at the built-in plugins. Also have a look at the kibana project wiki. (Please note that some of it is outdated.)
However, I have written a visualization for a very similar case. Have a look, I am pretty sure this will meet your needs.

Percent Metric in Kibana 4?

Hey I'm using the elk stack to store and view test results. I want to see a nice display something like this:
_Pass_____Fail_
99.99%___00.01%
However I can't find any way to do this. Is this possible in Kibana 4? I feel like this is a very basic feature that should be available...
You can certainly display the count of pass/fail in a table. Displaying the percents isn't possible in Kibana 4.0 or 4.1
If you need a visualization of the percentages, you can use a pie chart or a bar chart in percentage mode.

Interactive Heatmap / Matrix Visualization

I would like to display on a webpage a heatmap (matrix) that I generate in R.
The matrix I have looks like this, but in my case the size is 300x300.
Basically I am looking for an interactive clustering, which would look like this :
http://online.wsj.com/article/SB125993225142676615.html#articleTabs%3Dinteractive
http://mbostock.github.com/protovis/ex/matrix.html
I would like to be able to clic on a branch which would then highlight the selected group/text, and fade out the rest of the matrix.
I have had a look around and cannot find much. I don't even know what language I should use for this ? JSON, Flash, HTML5, javascript, google charts ?
Any comments and advices would be extremely appreciated here.
Thanks.
I think that InCHlib - Interactive Cluster Heatmap library could be the solution.
Available from http://openscreen.cz/software/inchlib.
Google Visualization provides this heatmap option:
http://informatics.systemsbiology.net/visualizations/heatmap/bioheatmap.html
There's also this project that adapted it for more advanced uses and actually includes mouse-overs and tool-tips, as well as line magnification:
http://code.google.com/p/visquick/
You may also want to take a look at jQuery Flot, but be warned that WSJ uses a super expensive company called Tableau for data visualization and you are unlikely to find that level of visualization eye candy in an open source or free to use package.
Unfortunately, I had the same requirement. To create a Clustergram (Heatmap + Dendrogram) for a hierarchical clustering results.
There is no direct solution for this. I used ProtovisGWT (Choosel) to create dendrogram and heatmap seperatley and later combnied them.
If you just want js library you can use just protovis or d3.js to achieve this.
I would recommend using JavaScript for this task. Save your heatmap as SVG in R
svg("mymap.svg")
heatmap(...)
dev.off()
And then embed it into an HTML document as object
<object id="test-svg" width="800" height="600"
type="image/svg+xml" data="test.svg"></object>
Now, you can use JavaScript or ECMAScript to do all kinds of manipulations. I recommend to read one of the various online tutorials on this topic. E.g., you could get started with this one: http://www.petercollingridge.co.uk/data-visualisation/using-javascript-control-svg
Treemap of D3.js solves this beautifully. See here
http://mbostock.github.io/d3/talk/20111018/treemap.html
You could try http://amp.pharm.mssm.edu/clustergrammer/ . It is not written in R, but you can make an interactive clustergram by uploading a matrix file in tab-separated format and you will be returned an interactive (reorderable, searchable, filterable, etc) and shareable web-based visualization
D3heatmap provides interactive heatmaps with dendrograms in R based on the heatmap and heatmap.2 interfaces. It includes single row and column selection but does not currently allow selection of dendrogram branches.

Resources