How can you set the colors in a chart with Kibana 4? - kibana-4

I have a stacked bar chart in Kibana 4, and I would like the error bar to be red, the warning bar to be orange and the info bar to be green. This used to be simple to accomplish in Kibana 3, but I cannot figure out how to do it in Kibana 4. Has anyone been able to do this?

In kibana4 (at least for v.4.1.0) this is not yet possible. The colors are chosen at random from a defined palette in the code.
Many people are asking for this, and I think it's planned for version 4.3.You can follow it here: https://github.com/elastic/kibana/issues/1362

It will be in Kibana 4.4 (already available if you checkout branch 4.4 of kibana instead of downloading the official release). Of course a development branch is not meant to be stable, so use at your own risks.

Related

dc.js grouped bar chart

I need to do this grouped bar chart like this one but the .renderType() doesn`t work. Are there any solutions to do a chart like this? Thanks!
You're right, it's non-trivial to find a branch or fork of dc.js and use it in your project.
The PR you linked is rather old and was replaced by this one. Unfortunately all grouped bar implementations had design shortcomings and none are ready to merge, which is why we still have to use forks or branches of the code.
Instead of renderType the API on this fork changed to
.groupBars(true)
The fork and branch for the new PR are here:
https://github.com/jaklub/dc.js/tree/grouped-or-stacked-bars
The artifacts (dc.js and dc.css) can be found on the grouped-or-stacked-bars-artifacts branch.
One way to fetch them is using jsdelivr:
https://cdn.jsdelivr.net/gh/jaklub/dc.js#grouped-or-stacked-bars-artifacts/dc.js
https://cdn.jsdelivr.net/gh/jaklub/dc.js#grouped-or-stacked-bars-artifacts/dc.css
Or, if you're using npm, you can declare the dependency as so:
"dc": "git+git#github.com:jaklub/dc.js#grouped-or-stacked-bars-artifacts"
Shorter version for any recent version of npm:
"dc": "jaklub/dc.js#grouped-or-stacked-bars-artifacts"
Although this is a fork of the last major version (3) of dc, it's compatible with the latest d3, as demonstrated in this demo fiddle.
Clearly you need a lot more horizontal space in order to display grouped bars, but that's a separate issue.

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.

Kibana 4,maps not showing specific areas

In Kibana 3, I was able to use three types of maps US,Europe and the World Map. But in the Kibana 4,I can only see a wolrd map version. For my data purposes I need to have only the US one. Can anybody help me on this?.
You can zoom and show a particular area alone. This is saved between sessions. Hence it should work fine for you.

Resources