title: Chart.JS: How to add Data to a specific dataset
body: <p>Currently I use this to add data to my charts:</p>
  
  <pre><code> targetChart.addData(value,targetDataSetIndex,"");
  </code></pre>
  
  <p>because I thought that this would add data to a specific set, adding an empty label.</p>
  
  <p>But this doesnt work. </p>
  
  <p>I then tried doing it myself by introducing a new method in the Chart.js script, like this:</p>
  
  <pre><code>    addDataValueToSpecificDataSet :function(value,datasetIndex)
      {
          this.datasets[datasetIndex].points.push(new this.PointClass({
              value: value,
              label: label,
              x: this.scale.calculateX(this.scale.valuesCount + 1),
              y: this.scale.endPoint,
              strokeColor: this.datasets[datasetIndex].pointStrokeColor,
              fillColor: this.datasets[datasetIndex].pointColor
          }));
      }
  </code></pre>
  
  <p>But when executing it isnt found. Where in Chart.JS do I need to put this so that it is accessible from the outside? Or can someone please tell me how im supposed to add data to a chart with multiple datasets one by one. I cant find it in the documentation which covers everything BUT adding and removing data.</p>