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

[feature] Allow min/max value for the sparkline in time series table #5603

Merged
merged 8 commits into from
Aug 13, 2018

Conversation

kristw
Copy link
Contributor

@kristw kristw commented Aug 10, 2018

  • User can set a fixed y-min/max
  • User can choose to display y-axis for the sparkline
  • Refactor and extract Sparkline logic from time_table into SparklineCell

debug-time-series-table-4

@williaster @graceguo-supercat

@codecov-io
Copy link

codecov-io commented Aug 10, 2018

Codecov Report

Merging #5603 into master will decrease coverage by 0.1%.
The diff coverage is 8.45%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5603      +/-   ##
==========================================
- Coverage   63.59%   63.48%   -0.11%     
==========================================
  Files         359      360       +1     
  Lines       22799    22879      +80     
  Branches     2533     2546      +13     
==========================================
+ Hits        14499    14525      +26     
- Misses       8285     8339      +54     
  Partials       15       15
Impacted Files Coverage Δ
superset/assets/src/visualizations/time_table.jsx 0% <0%> (ø) ⬆️
...perset/assets/src/visualizations/SparklineCell.jsx 0% <0%> (ø)
superset/assets/src/modules/visUtils.js 58.33% <100%> (ø) ⬆️
...re/components/controls/TimeSeriesColumnControl.jsx 88.46% <71.42%> (-2.65%) ⬇️
superset/connectors/druid/views.py 68.24% <0%> (ø) ⬆️
superset/connectors/sqla/views.py 64.34% <0%> (ø) ⬆️
superset/views/core.py 73.99% <0%> (+0.15%) ⬆️
...set/assets/src/dashboard/components/SliceAdder.jsx 86.04% <0%> (+0.16%) ⬆️
...rc/explore/components/controls/AnnotationLayer.jsx 23.03% <0%> (+0.37%) ⬆️
... and 1 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 d1ef81f...0a2af6b. Read the comment docs.

@kristw
Copy link
Contributor Author

kristw commented Aug 10, 2018

Add an option to show bounds

debug-time-series-table-2

@williaster
Copy link
Contributor

williaster commented Aug 10, 2018

@kristw this looks great! One thought about the reference lines/showing the bounds, do you think it'd be useful to label them? Something like the following but just the number for min / max

image

The tricky thing with this would be the padding to accommodate the label, so might not be worth it 🤔 would be nice to have better support for that tho.

@kristw
Copy link
Contributor Author

kristw commented Aug 11, 2018

Done 😄. Using visUtils to estimate label width and dynamically adjust padding.

image

@williaster
Copy link
Contributor

WOW! 🙉

this will also be really useful (possibly more so!) without setting ymin/max bounds too

@kristw
Copy link
Contributor Author

kristw commented Aug 13, 2018

debug-time-series-table-4

@williaster williaster merged commit 536478e into apache:master Aug 13, 2018
kristw added a commit to kristw/incubator-superset that referenced this pull request Aug 14, 2018
…pache#5603)

* Allow min/max value for the sparkline in time series table

* show bound lines

* User can choose to show y-axis bounds

* show label for the bounds

* compute necessary padding for the bound label

* extract sparkline code to another component

* can show y-axis in sparkline without setting bounds

* reorder option rows

(cherry picked from commit 536478e)
kristw added a commit to kristw/incubator-superset that referenced this pull request Aug 14, 2018
…pache#5603)

* Allow min/max value for the sparkline in time series table

* show bound lines

* User can choose to show y-axis bounds

* show label for the bounds

* compute necessary padding for the bound label

* extract sparkline code to another component

* can show y-axis in sparkline without setting bounds

* reorder option rows

(cherry picked from commit 536478e)
@kristw kristw deleted the kristw/time-series-table branch August 15, 2018 00:28
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
…pache#5603)

* Allow min/max value for the sparkline in time series table

* show bound lines

* User can choose to show y-axis bounds

* show label for the bounds

* compute necessary padding for the bound label

* extract sparkline code to another component

* can show y-axis in sparkline without setting bounds

* reorder option rows
@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