question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ramp: unexpected results

See original GitHub issue

After talking with @makella it’s been clear that ramp() applies the cartocolor palettes in an “unexpected” way.

I would like confirmation about how this should be managed before implementing it. I think there are multiple issues with ramp() so I’m just gonna propose the future behavior.

Forgive me for the programmer-like way of asking this but I hope it’s the clearest way to define the expected behavior.

if palette is cartocolor then
          if input contains "others" bucket  then
                 apply cartocolor subscheme
          else if input doesn't contain ''others" bucket then
                  if cartocolor has "qualitative" tag then
                         apply cartocolor subscheme with one extra bucket to ignore the last bucket
                  else if cartocolor doesn't have "qualitative" tag then
                        apply cartocolor subscheme

if input is numeric then
     activate linear interpolation between colors, taking the cartocolor with most buckets
else if input is category then
      don't activate linear interpolation between colors

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
makellacommented, Feb 14, 2018

@davidmanzanares I can’t provide much technical detail, but we did experience something similar with TurboCARTO (not sure if it is at ALL related! but wanted to share nonetheless.) https://github.com/CartoDB/turbo-carto/issues/38

0reactions
makellacommented, Mar 6, 2018

@davidmanzanares tested over a couple of examples, and looks to be fixed! thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected Results Ramp - Pioneer - AetherHub
Pioneer deck by GrizzlyMantes.
Read more >
Pioneer with Poncelet - Unexpected Ramp - TCGplayer Infinite
I've got just what you need! It's a ramp deck featuring Unexpected Results to power out game-ending threats as early as turn three!...
Read more >
Magic Online - Pioneer - Unexpected Results Ramp - Reddit
Magic Online - Pioneer - Unexpected Results Ramp ... A spicy list from the MTGO leagues! How does it hold up? Weeelllll.... Here's...
Read more >
Instant Deck Tech: Unexpected Results (Modern) - YouTube
Instant Deck Tech time! It's wildcard Wednesday here in Instant Deck Tech land and today's deck is certainly wild. The plan is to...
Read more >
≫ MTG Unexpected Results card prices and decks December ...
Unexpected Results MTG Prices. [GTC]. Gatecrash ... Unexpected Results Shuffle your library, then reveal the top card. If it's a nonland. Other Versions...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found