Skip to content

Commit

Permalink
disable immediately re-render for color scheme change
Browse files Browse the repository at this point in the history
for chart type: bubble, area, treemap and country map, color scheme change cannot take effect immediately. So have to disable immediately re-render function and hide lightening icon for these chart type.
  • Loading branch information
Grace Guo committed Aug 17, 2017
1 parent 9f3aeb2 commit 51a7165
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions superset/assets/javascripts/explore/stores/visTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,9 @@ export const visTypes = {
default: 'smart_date',
choices: D3_TIME_FORMAT_OPTIONS,
},
color_scheme: {
renderTrigger: false,
},
},
},

Expand Down Expand Up @@ -421,6 +424,11 @@ export const visTypes = {
],
},
],
controlOverrides: {
color_scheme: {
renderTrigger: false,
},
},
},

cal_heatmap: {
Expand Down Expand Up @@ -500,6 +508,9 @@ export const visTypes = {
x_axis_format: {
default: '.3s',
},
color_scheme: {
renderTrigger: false,
},
},
},

Expand Down Expand Up @@ -720,6 +731,9 @@ export const visTypes = {
label: 'Metric',
description: 'Metric to display bottom title',
},
linear_color_scheme: {
renderTrigger: false,
},
},
},
world_map: {
Expand Down

0 comments on commit 51a7165

Please sign in to comment.