Incubator-superset: How to add theme custom color to chart

Created on 26 Dec 2018  路  3Comments  路  Source: apache/incubator-superset

Make sure these boxes are checked 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.

Superset version

0.29.0rc7

Expected results

How to add custom color scheme in this dropdown

Actual results

Steps to reproduce

spendmap1

inactive

Most helpful comment

You can use superset-ui/color or write custom color map like categoricalSchemeRegistrycolor_scheme: { type: 'ColorSchemeControl', label: t('Color Scheme'), default: 'bnbColors', renderTrigger: true, choices: () => categoricalSchemeRegistry.keys().map(s => ([s, s])), description: t('The color scheme for rendering chart'), schemes: () => categoricalSchemeRegistry.getMap(), },

thank you. I am new superset, this is not clear to me , can you some brief explanation

All 3 comments

You can use superset-ui/color or write custom color map like categoricalSchemeRegistrycolor_scheme: { type: 'ColorSchemeControl', label: t('Color Scheme'), default: 'bnbColors', renderTrigger: true, choices: () => categoricalSchemeRegistry.keys().map(s => ([s, s])), description: t('The color scheme for rendering chart'), schemes: () => categoricalSchemeRegistry.getMap(), },

You can use superset-ui/color or write custom color map like categoricalSchemeRegistrycolor_scheme: { type: 'ColorSchemeControl', label: t('Color Scheme'), default: 'bnbColors', renderTrigger: true, choices: () => categoricalSchemeRegistry.keys().map(s => ([s, s])), description: t('The color scheme for rendering chart'), schemes: () => categoricalSchemeRegistry.getMap(), },

thank you. I am new superset, this is not clear to me , can you some brief explanation

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thoralf-gutierrez picture thoralf-gutierrez  路  3Comments

XiaodiKong picture XiaodiKong  路  3Comments

ylkjick532428 picture ylkjick532428  路  3Comments

gbrian picture gbrian  路  3Comments

josephtyler picture josephtyler  路  3Comments