code: function configure(chart, options, chartType){
                          if (chart && options){
                              angular.forEach(chart, function(value, key){
                                  if (key[0] === '_');
                                  else if (key === 'dispatch') {
                                      if (options[key] === undefined || options[key] === null) {
                                          if (scope._config.extended) options[key] = {};
                                      }
                                      configureEvents(value, options[key]);
                                  }
                                  else if (key === 'tooltip') {
                                      if (options[key] === undefined || options[key] === null) {
                                          if (scope._config.extended) options[key] = {};
                                      }
                                      configure(chart[key], options[key], chartType);
                                  }
                                  else if (key === 'contentGenerator') {
                                      if (options[key]) chart[key](options[key]);
                                  }
                                  else if ([
                                          'axis',
                                          'clearHighlights',
                                          'defined',
                                          'highlightPoint',
                                          'nvPointerEventsClass',
                                          'options',
                                          'rangeBand',
                                          'rangeBands',
                                          'scatter',
                                          'open',
                                          'close',
                                          'node'
                                      ].indexOf(key) === -1) {
                                      if (options[key] === undefined || options[key] === null){
                                          if (scope._config.extended) options[key] = value();
                                      }
                                      else chart[key](options[key]);
                                  }
                              });
                          }
                      }
docs: Configure the chart model with the passed options