title: chart.js plugins.register function with outer data
body: <p>How to pass data to chart.plugins.register function? I need to use some data from outside but I cant because it lacks the context:</p>
  
  <pre><code>Chart.plugins.register( {
    beforeDraw: function (chart) {
      //code
    }
  });
  </code></pre>
  
  <p>I tried <code>.bind(data)</code> but it gives errors.</p>