Provide clear error message for incompatible color schemes.
See original GitHub issueI 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:
- Created 4 years ago
- Comments:10 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.Alright, I thought the same applies to the
color
argument. Will open a separate issue then.