Changing label on x-axis


(Varun Patel) #1

I am using bar chart to generate data. Using Date-Histogram and splitting it monthly.

Here x-axis shows starting date of the month, but i want to have month name (viz Jan, Feb etc). So is it included in latest release?

Also when i am using date histogram, first record with the month is not visible,
For eg: I have range from January to December
The Graph will split monthly but record of January will not have any indication in x- axis.

Please let me know if i need to upgrade my kibana. Currently using version 5.2.0.


(erion) #2

If i understud correctly you need to use a screpted field. here you can find documentation https://www.elastic.co/guide/en/kibana/current/scripted-fields.html.
For create that you should use Painless Scripting Language and here you can find the documentation https://www.elastic.co/guide/en/elasticsearch/reference/master/modules-scripting-painless.html#modules-scripting-painless-dates .


(Varun Patel) #3

no i am not talking about scripted field. I want label on x-axis as month name rather than date.


(Mark Walkom) #4

That's not currently possible, you can only do by date.


(system) #5

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.