code: function() {
      var legend = {};
      var n;
      this.st.graph.getNode(this.st.root).eachAdjacency(function(adj) {
        n = adj.nodeTo;
      });
      var colors = n.getData('colorArray'),
          len = colors.length;
      $.each(n.getData('stringArray'), function(s, i) {
        legend[s] = colors[i % len];
      });
      return legend;
    }
docs: /*
  Method: getLegend
  
  Returns an object containing as keys the legend names and as values hex strings with color values.
  
  Example:
  
  (start code js)
  var legend = areaChart.getLegend();
  (end code)