function addToActiveVisualizations(key, element) {
    var visualization = new _config2.default.visualizations.available[key]["object"]();
    visualization.setPreferences(_config2.default.visualizations.available[key]["preferences"]);
    visualization.startVisualization(element);
    _config2.default.visualizations.active.push(visualization);
  }
Add a visualization to the array of active visualizations.

@param {string} key - The key of the active visualization.
@param {Node} element - The element that the visualization will be applied to.