-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Add additional heatmap schemas #5549
Add additional heatmap schemas #5549
Conversation
I'm not done, do not merge! |
Mind sharing screenshots of what the new options look like? |
In theory I could, but somehow I broke the npm build and I'm trying to get it working again. Once I get it working I am happy to post screenshots. |
Codecov Report
@@ Coverage Diff @@
## master #5549 +/- ##
==========================================
+ Coverage 63.36% 63.59% +0.23%
==========================================
Files 351 359 +8
Lines 22258 22802 +544
Branches 2470 2534 +64
==========================================
+ Hits 14104 14502 +398
- Misses 8139 8285 +146
Partials 15 15
Continue to review full report at Codecov.
|
Pinging @mistercrunch |
@mistercrunch - I was thinking about changing some of the d3 colorschemes so that the first color (which is close to white) is dropped, but it seems that now missing blocks are gray. So maybe its not such a big deal? |
FYI - I lifted all the color schemas straight from here - https://github.com/d3/d3-scale-chromatic |
Hmmm I'm getting an error when I navigate to a dashboard, but I don't know why. http://localhost:8088/superset/dashboard/deck/
|
@jerowe there was a bug on |
…into feature/heatmap-color-scales
I will wait for the tests to complete and then remove the WIP. |
@mistercrunch this is all ready |
@mistercrunch , you see how in the calendar view the missing ones are grayed out? I like this. How possible would it be to get a PR to have that as an option for the other heatmap? |
ping @mistercrunch (sorry to be a pain but I really want this.) |
Ok and as long as we are talking about stuff I want: Color select for missing values |
Indents seem off, should be 2 not 4. I don't understand why the linter doesn't fire on that. |
I tried to get my editor to go along with the project configs, but didn't quite get it perfect. Any tips? I use webstorm |
Use vim :) |
@mistercrunch , I fixed the indentation issues. |
@elibrumbaugh @williaster what do you think of adding these color schemes? |
ok now it is all ready |
@@ -324,6 +324,40 @@ export const controls = { | |||
['red_yellow_blue', 'red/yellowish/blue'], | |||
['brown_white_green', 'brown/white/green'], | |||
['purple_white_green', 'purple/white/green'], | |||
['schemeBrBG', 'd3BrBG'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please make these more human readable? non-power users are not going to have any idea what BrBG
means
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure. updated.
I'm fine with it, this isn't the long term solution we want (ideally Superset admins would be able to define the color schemes they want in a plugin-way) but fine for now 🤷♀️ cc @kristw |
LGTM. I agree with @williaster |
@kristw , I just tried to squash my commits, but I'm not sure I was successful. Can they get squashed on merge? |
* got skeleton started * added d3-scale-chromatic to package.json * got hex values instead of calling from a function * got rid of d3-scale-chromatic - no longer needed * added schemas to controls * damn editor broken some line spacing * commit * fix style issues * whyyyyy won't this build * whyyyyy won't this build * damn typo * hahaha got editor to deal with style configs * no i guess i didn't * gotta get them all * again * trying to get docker build ot work * updated installation docs with some osx instructions * restoring yarn.lock not sure why it changed * trying to fix indent * trying again * CODE STYLE CHANGES WORK * removing some colors that are too close to white * human readable labels for names * human readable labels for names
References: #4574
ping @mistercrunch