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

Use elastic-charts in Kibana Discover #191

Closed
30 of 32 tasks
emmacunningham opened this issue Apr 24, 2019 · 3 comments
Closed
30 of 32 tasks

Use elastic-charts in Kibana Discover #191

emmacunningham opened this issue Apr 24, 2019 · 3 comments
Assignees
Labels
enhancement New feature or request kibana cross issue Has a Kibana issue counterpart

Comments

@emmacunningham
Copy link
Contributor

emmacunningham commented Apr 24, 2019

Is your feature request related to a problem? Please describe.
Additional features needed in elastic-charts:

On the Kibana side:

  • IN PROGRESS Use elastic-charts component (Replace Discover chart with elastic-charts kibana#43788)
    • Partial bucket rect annotations
    • Partial bucket custom tooltip header
    • Line annotation for current time
    • Axis ticks line up correctly for each time interval
    • Buckets render correctly for each time interval
      • check all ranges at auto interval
      • check all ranges at manually set intervals
    • On brush, fetch new data
    • styling (we will use the elastic-charts theme defaults but should check both dark & light modes)
    • fix tests [note updating with elastic-charts did not break any tests]
    • line annotation for now renders correctly
      • within chart when now is within time range
      • adjust position to make line visible when at domain edge
    • localize custom text
    • rect annotation tooltip should be formatted correctly
    • y-axis formatter
    • bug when hovering out of tooltip

Describe the solution you'd like
Use elastic-charts for the charts in Kibana Discover.

Describe alternatives you've considered

Additional context

Kibana Cross Issues
TODO

Checklist

  • this request is checked against already exist requests
  • every related Kibana issue is listed under Kibana Cross Issues list
  • kibana cross issue tag is associated to the issue if any kibana cross issue is present
@emmacunningham emmacunningham added the enhancement New feature or request label Apr 24, 2019
@emmacunningham emmacunningham self-assigned this Apr 24, 2019
@markov00 markov00 mentioned this issue Apr 24, 2019
93 tasks
@emmacunningham emmacunningham added the kibana cross issue Has a Kibana issue counterpart label Jun 19, 2019
@emmacunningham
Copy link
Contributor Author

emmacunningham commented Jul 2, 2019

A couple of things to discuss:

  • y axis formatter when counts are < 0 (when interval is very low)
  • should we write tests for the histogram component?
  • yearly view, e.g.:

image

monthly and weekly views seem to be wrong in current implementation?
image

image

@emmacunningham
Copy link
Contributor Author

Follow-up from elastic-charts sync:

  • y axis formatter when counts are < 0 (when interval is very small - milliseconds or seconds)
    the current implementation formats all values below 0 as 0 which is not very useful. the group's consensus is that the elastic-charts handling (rendering the much more detailed decimal values) is the correct one and also that getting to these views is in and of itself odd.

  • should we write tests for the histogram component?
    no because there currently are no tests for the component and as things in discover are changing quickly, the effort outweighs the gains. we will write no new additional tests.

  • yearly, monthly, and weekly manual intervals:
    the elastic-charts bucket sizes are correct and there appears to be an issue with the current implementation (see above screenshots). as for the yearly view, this is a weird case to begin with (we may want to disable the user's ability to select this for date ranges that are too small). at any rate, the group agreed that the elastics-charts bucket size for these larger ranges is correct and we will follow up on the kibana side to better enforce the interval options.

@markov00
Copy link
Member

close as Kibana Discover is already using elastic-charts since 7.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kibana cross issue Has a Kibana issue counterpart
Projects
None yet
Development

No branches or pull requests

2 participants