title: Highcharts change or add color for name in a array of point.names and y
body: <p>I need to set the color for a array of point.name and y individually.</p>
  
  <p>What i have so far:</p>
  
  <pre><code>(function(H) {
    H.wrap(H.Series.prototype, 'getColor', function(proceed) {
      this.color = generateColorForString(this.name);
    });
  }(Highcharts));
  </code></pre>
  
  <p>This is working for the following data-structure:</p>
  
  <pre><code>{
    "data": [
      [
        [
          "2018",
          "02",
          "16",
          "00",
          "00"
        ],
        4.9
      ],
      ...
   ],
    "name": "MySeriesName"
  }
  </code></pre>
  
  <p>but not for this data structure for a pie chart:</p>
  
  <pre><code>{
    "type": "pie",
    "name": "MySeriesName",
    "data": [
      [
        "foo",
        27
      ],
      [
        "foox",
        112
      ],
      [
        "fooy",
        4
      ]
      ...
    ]
  }
  </code></pre>
  
  <p>Is it possible to set a color for every point by name?</p>
  
  <p>Here is my fiddle: <a href="http://jsfiddle.net/2nd8561k/2/" rel="nofollow noreferrer">http://jsfiddle.net/2nd8561k/2/</a></p>