Skip to content

fix: missing dash style in line annotation#692

Merged
markov00 merged 2 commits intoelastic:masterfrom
markov00:2020_05_29-fix_annotation_dash_style
Jun 1, 2020
Merged

fix: missing dash style in line annotation#692
markov00 merged 2 commits intoelastic:masterfrom
markov00:2020_05_29-fix_annotation_dash_style

Conversation

@markov00
Copy link
Copy Markdown
Collaborator

@markov00 markov00 commented Jun 1, 2020

Summary

This fix re-adds the dash style for line annotations. This probably was an existing feature before we removed Konva library, the story annotations/lines/5_styling.tsx has references to dashWidth and dashGapWidth used on the line style.

The VRT was manually updated as with the current change threshold (0,005% of the whole image) the change is not surfaced. I will open a subsequent PR to check if we can safely remove this threshold

fix #687

Checklist

Delete any items that are not applicable to this PR.

  • Any consumer-facing exports were added to src/index.ts (and stories only import from ../src except for test data & storybook)
  • Proper documentation or storybook story was added for features that require explanation or tutorials
  • Unit tests were updated or added to match the most common scenarios

@markov00 markov00 added bug Something isn't working :annotation Annotation (line, rect, text) related issue regression :xy Bar/Line/Area chart related labels Jun 1, 2020
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jun 1, 2020

Codecov Report

Merging #692 into master will increase coverage by 0.42%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #692      +/-   ##
==========================================
+ Coverage   72.78%   73.21%   +0.42%     
==========================================
  Files         255      270      +15     
  Lines        8437     8744     +307     
  Branches     1674     1719      +45     
==========================================
+ Hits         6141     6402     +261     
- Misses       2255     2296      +41     
- Partials       41       46       +5     
Impacted Files Coverage Δ
...ypes/xy_chart/renderer/canvas/annotations/lines.ts 25.00% <ø> (ø)
src/utils/themes/theme.ts 100.00% <ø> (ø)
src/mocks/store/index.ts 100.00% <0.00%> (ø)
src/mocks/geometries.ts 86.84% <0.00%> (ø)
src/mocks/utils.ts 94.11% <0.00%> (ø)
src/mocks/series/utils.ts 88.88% <0.00%> (ø)
src/mocks/specs/index.ts 100.00% <0.00%> (ø)
src/mocks/series/index.ts 100.00% <0.00%> (ø)
src/mocks/specs/specs.ts 74.71% <0.00%> (ø)
src/mocks/series/data.ts 100.00% <0.00%> (ø)
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd65244...217f713. Read the comment docs.

Copy link
Copy Markdown
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

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

LGTM, Nice quick fix!

@markov00 markov00 merged commit e2ba940 into elastic:master Jun 1, 2020
markov00 pushed a commit that referenced this pull request Jun 1, 2020
## [19.4.1](v19.4.0...v19.4.1) (2020-06-01)

### Bug Fixes

* missing dash style in line annotation ([#692](#692)) ([e2ba940](e2ba940)), closes [#687](#687)
@markov00
Copy link
Copy Markdown
Collaborator Author

markov00 commented Jun 1, 2020

🎉 This PR is included in version 19.4.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@markov00 markov00 added the released Issue released publicly label Jun 1, 2020
@markov00 markov00 deleted the 2020_05_29-fix_annotation_dash_style branch November 25, 2020 11:47
AMoo-Miki pushed a commit to AMoo-Miki/OpenSearch-Dashboards that referenced this pull request Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:annotation Annotation (line, rect, text) related issue bug Something isn't working regression released Issue released publicly :xy Bar/Line/Area chart related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dashed Lines Not Working

3 participants