mirror of
https://github.com/apache/superset.git
synced 2026-04-21 00:54:44 +00:00
[WIP] Add dual-axis line chart to viz (#1782)
* Add dual-axis line chart to viz - Add a new viz using two y axis for multi-chart in nvd3 - Option to set metric and axis format for two y axis * Resolve conflicts * Fixed x axis and resized thumbnail * Added example to __init__.py * Change get_df to match with format
This commit is contained in:
@@ -50,6 +50,9 @@ export const exploreReducer = function (state, action) {
|
||||
newState.filterColumnOpts = optionsByFieldName[fieldName];
|
||||
} else {
|
||||
newState.fields[fieldName].choices = optionsByFieldName[fieldName];
|
||||
if (fieldName === 'metric' && state.viz.form_data.viz_type === 'dual_line') {
|
||||
newState.fields.metric_2.choices = optionsByFieldName[fieldName];
|
||||
}
|
||||
}
|
||||
});
|
||||
return Object.assign({}, state, newState);
|
||||
|
||||
Reference in New Issue
Block a user