title: d3- Find max key/value in nested arrays
body: <p>I have an array of 3 nested arrays, each containing 3 objects. What d3 syntax do I use to find the max value of data1 in all of the data?</p>
  
  <p>Is it something like, </p>
  
  <pre><code>function find_max(all_data, i){
      return d3.max(all_data[i].data1)
  }
  </code></pre>
  
  <p>Here's my data structure: </p>
  
  <pre><code>all_data = [
          [{data1:2, age:6},
           {data1:4, age:5},
           {data1:5, age:4}],
  
          [{data1:7, age:2},
           {data1:1, age:9},
           {data1:0, age:8}],
  
          [{data1:5, age:9},
           {data1:6, age:9},
           {data1:8, age:6}]
         ]
  </code></pre>
  
  <p>Basically, I want it to return 8. Thanks for the help!! I can't quite get it right.</p>