Skip to content

Timelion: Show correct value in legend for step charts - #47863

Merged
flash1293 merged 5 commits into
elastic:masterfrom
flash1293:flash1293/timelion-legend-value-36539
Oct 22, 2019
Merged

flash1293 merged 5 commits into
elastic:masterfrom
flash1293:flash1293/timelion-legend-value-36539

Conversation

@flash1293

@flash1293 flash1293 commented Oct 10, 2019 •

Copy link
Copy Markdown
Contributor

Fixes #36539

This PR changes the logic how the current data point is determined to show the current value in the legend.

If the series is shown as a stepped line or a bar chart, it will always show the value of the current bar or the data point left of the current x position. If the series is a regular line chart with interpolated values between the actual data points, it will show the value of the data point closer to the current x position - this is also how elastic-charts behaves.

stepped
interpolated

@flash1293 flash1293 changed the title [skip ci] Timelion: Improve logic for showing legend Timelion: Improve logic for showing legend Oct 11, 2019
@flash1293

Copy link
Copy Markdown
Contributor Author

Jenkins, test this.

@elasticmachine

Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@flash1293
flash1293 marked this pull request as ready for review October 11, 2019 14:36
@flash1293 flash1293 added the Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// label Oct 11, 2019
@elasticmachine

Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293
flash1293 requested a review from timroes October 11, 2019 14:36
@flash1293

Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@elasticmachine

Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@timroes timroes left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on Chrome Linux. works as intended.

@timroes timroes changed the title Timelion: Improve logic for showing legend Timelion: Show correct value in legend for step charts Oct 22, 2019
@flash1293
flash1293 merged commit d141b8b into elastic:master Oct 22, 2019
@flash1293
flash1293 deleted the flash1293/timelion-legend-value-36539 branch October 22, 2019 09:54
flash1293 added a commit to flash1293/kibana that referenced this pull request Oct 22, 2019
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:Timelion Timelion app and visualization release_note:fix Team:Visualizations Team label for Lens, elastic-charts, Graph, legacy editors (TSVB, Visualize, Timelion) t// v7.5.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Timelion legend shows wrong value for non auto interval lines graph as step

3 participants