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.

Provide clear error message for incompatible color schemes.

See original GitHub issue

I was directed here after logging https://github.com/altair-viz/altair/issues/1603

When I accidentally used a discrete colour map for continuous data, I got the error

Javascript Error: e is undefined

i.e.

color=alt.Color('Loss', scale=alt.Scale(scheme=‘dark2’))

I should have used

color=alt.Color('Loss', scale=alt.Scale(scheme=‘viridis’))

Sorry, I’m not sure how to express this as vega-lite syntax, but it seems to me there’s potentially a bug as the error message seems to indicate that there’s an exception handler missing an e argument somewhere?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
jheercommented, Aug 23, 2019

In addition to better error warning, this issue also revealed an issue in color scheme handling. Array-valued schemes can be interpolated to be used within interpolating scale types. This was already supported for array literals as the scale range, but not for named schemes. PR #1950 fixes this bug and also adds a new, friendlier warning for incompatible schemes.

0reactions
toxylcommented, Aug 15, 2019

Alright, I thought the same applies to the color argument. Will open a separate issue then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Vim keep showing error message about color scheme for no ...
Seems like the g:colors_name variable inside the script is using inconsistent case. Try renaming either to be consistent, then try again. – Ingo ......
Read more >
How to prevent the color scheme from automatically being ...
An error pops up that states: The color scheme has been changed to Windows 7 Basic The current color scheme has exceeded its...
Read more >
stitches component "Types of property 'css' are incompatible ...
in next js typescript Button example have error "Types of property 'css' are incompatible." with storybook on Dec 14, 2021.
Read more >
Errors - Patterns - Material Design
It's recommended that you use a contrasting color for error states, such as a warmer hue like red or orange. Error text should...
Read more >
How Do I Clear a Canon Printer Error Code? - Driver Support
Canon printers produce error codes for one of several reasons: The settings for your printer might not be compatible with the document you're...
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