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

EXTRA_SEQUENTIAL_COLOR_SCHEMES result in error in color dropdown #17812

Closed
3 tasks done
hbruch opened this issue Dec 18, 2021 · 0 comments · Fixed by #17813
Closed
3 tasks done

EXTRA_SEQUENTIAL_COLOR_SCHEMES result in error in color dropdown #17812

hbruch opened this issue Dec 18, 2021 · 0 comments · Fixed by #17813
Labels
#bug Bug report

Comments

@hbruch
Copy link
Contributor

hbruch commented Dec 18, 2021

Defining EXTRA_SEQUENTIAL_COLOR_SCHEMES results in broken color dropdown.

How to reproduce the bug

  1. In superset_config.py, define EXTRA_SEQUENTIAL_COLOR_SCHEMES, e.g. like
  EXTRA_SEQUENTIAL_COLOR_SCHEMES =[
    {
         "id": 'mySequentialScheme',
         "description": 'myDescription',
         "label": 'myLabel',
         "isDiverging": False,
         "colors":
          ['#dfdeeb', '#cac8dd', '#b5b2d0', '#a09dc2', 
           '#8d8ab6', '#7c79ab',
           '#6b69a0', '#5a5995', '#464889', '#2e367b']
    }
]
  1. start superset
  2. create a chart e.g. DeckGL polygon chart
  3. In chart editor, Switch to Customize tab
  4. See error in Color dropdown

Expected results

The defined extra colors should appear as a dropdown item.

Actual results

An unexpected error occures.

Screenshots

grafik

Environment

n.a.

Checklist

Make sure to follow these steps before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

Seems to have been introduced by refactorings of setupColors.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
#bug Bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant