Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom date formats for a visualization #13784

Closed
alexfrancoeur opened this issue Aug 30, 2017 · 5 comments
Closed

Custom date formats for a visualization #13784

alexfrancoeur opened this issue Aug 30, 2017 · 5 comments
Labels
Feature:FieldFormatters Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure

Comments

@alexfrancoeur
Copy link

Some users would like to customize the format of a date in a date histogram per visualization. This could technically be done with a scripted field and field formatters but that is not necessarily manageable. This issue to track additional date formatting customization options in a visualization, TSVB and Timelion

cc: @elastic/kibana-visualizations, @simianhacker

@alexfrancoeur alexfrancoeur added Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement labels Aug 30, 2017
@timroes timroes added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 16, 2018
@tsullivan
Copy link
Member

Let's revive this issue because I think there may be a more straightforward solution to customize date formats per visualization.

When I create a data table visualization using a date_histogram as the top-level agg, I am able to enter JSON that gets merged with with the definition of the date histogram DSL:

01

Elasticsearch performs as expected and formats the resulting bucket date-strings with my format:

02

The solution seems like it should be for the rendering to allow display of either key or key_as_string, depending on whether there was customization from the user.

@jvmlet
Copy link

jvmlet commented May 31, 2020

Very anticipated ....

@lukeelmers
Copy link
Member

This feels like a duplicate of #4957 -- @alexfrancoeur I'll let you confirm before closing.

@alexfrancoeur
Copy link
Author

Confirmed 😎

@vikramnr
Copy link

@alexfrancoeur Just wanted to confirm if this has gone live in the latest version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:FieldFormatters Feature:Visualizations Generic visualization features (in case no more specific feature label is available) release_note:enhancement Team:Visualizations Visualization editors, elastic-charts and infrastructure
Projects
None yet
Development

No branches or pull requests

8 participants