[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:
vera-liu
2017-01-06 10:30:27 -08:00
committed by GitHub
parent 119b0c55e9
commit c3edc6e24b
9 changed files with 206 additions and 10 deletions

View File

@@ -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);