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

[SIP-5] Repair and refactor Horizon Chart #5690

Merged
merged 7 commits into from
Aug 27, 2018

Conversation

kristw
Copy link
Contributor

@kristw kristw commented Aug 21, 2018

  • Rewrite into React Component.
  • Fix visual issues
  • Enable renderTrigger on compatible props

Before

image

After

image

@williaster @conglei

@codecov-io
Copy link

codecov-io commented Aug 21, 2018

Codecov Report

Merging #5690 into master will increase coverage by 0.08%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5690      +/-   ##
==========================================
+ Coverage   63.43%   63.51%   +0.08%     
==========================================
  Files         361      362       +1     
  Lines       22977    22947      -30     
  Branches     2558     2550       -8     
==========================================
  Hits        14575    14575              
+ Misses       8387     8357      -30     
  Partials       15       15
Impacted Files Coverage Δ
superset/assets/src/explore/controls.jsx 46.26% <ø> (ø) ⬆️
superset/assets/src/visualizations/HorizonRow.jsx 0% <0%> (ø)
...uperset/assets/src/visualizations/HorizonChart.jsx 0% <0%> (ø)

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 5e6efae...a6c4ce4. Read the comment docs.

Copy link
Contributor

@williaster williaster left a comment

Choose a reason for hiding this comment

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

This is much better! Thanks for refactoring 👍 Had one comment but otherwise lgtm

choices: [
['series', 'series'],
['overall', 'overall'],
['change', 'change'],
],
default: 'series',
description: t('Defines how the color are attributed.'),
description: t('series: Treat each series independently; overall: All series use the same scale; change: Show changes compared to the first data point in each series'),
Copy link
Contributor

Choose a reason for hiding this comment

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

💯

className: '',
width: 800,
height: 20,
bands: DEFAULT_COLORS.length >> 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

any way to write this without bitwise operators for readability? like Math.floor(DEFAULT_COLORS.length / 2) or something?

Copy link
Contributor Author

@kristw kristw Aug 23, 2018

Choose a reason for hiding this comment

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

Addressed. 👍

@kristw kristw changed the title Repair and refactor Horizon Chart [SIP-5] Repair and refactor Horizon Chart Aug 24, 2018
@kristw
Copy link
Contributor Author

kristw commented Aug 27, 2018

Ready to merge

@williaster williaster merged commit d7f06cb into apache:master Aug 27, 2018
kristw added a commit to kristw/incubator-superset that referenced this pull request Aug 27, 2018
* Migrate horizon chart to react

* remove unused code

* rename files

* update props

* enable renderTrigger

* fix canvas transform issue

* Address Chris' comment

(cherry picked from commit d7f06cb)
@kristw kristw deleted the kristw-horizon branch August 27, 2018 20:35
kristw added a commit to kristw/incubator-superset that referenced this pull request Aug 27, 2018
* Migrate horizon chart to react

* remove unused code

* rename files

* update props

* enable renderTrigger

* fix canvas transform issue

* Address Chris' comment

(cherry picked from commit d7f06cb)
betodealmeida pushed a commit to lyft/incubator-superset that referenced this pull request Oct 12, 2018
* Migrate horizon chart to react

* remove unused code

* rename files

* update props

* enable renderTrigger

* fix canvas transform issue

* Address Chris' comment
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
* Migrate horizon chart to react

* remove unused code

* rename files

* update props

* enable renderTrigger

* fix canvas transform issue

* Address Chris' comment
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.28.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants