title: ChartJs how to get from mulitiple dateset which dataset bar is clicked
body: <p>I want add a unique url to each bar and open that url on click one of bar. But in my case i have two datasets. I am using onClick event which return active record of both dataset.
  <a href="https://i.stack.imgur.com/ZjOBm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZjOBm.png" alt="enter image description here"></a></p>
  
  <p>I am using following code.. It will return both dataset object...it should return only one dataset. </p>
  
  <pre><code>&lt;script&gt;
          var barChartData = {
              labels: ["Jan","Feb","March"],
              datasets: [{
                  label : "Quoted",
                  backgroundColor : "#FF7228",
                  data : [50,20,70],
              },
              {
                  label : "Accepted",
                  backgroundColor : "#FFCC8C",
                  data :  [30,10,20],
              }, 
              ]
  
          };
  
          window.onload = function() {
              var ctx = document.getElementById("canvas").getContext("2d");
              window.myBar = new Chart(ctx, {
                  type: 'bar',
                  data: barChartData,
                  options: {
                      events:['click'],
                      onClick:function(c,i){
                              console.log(this.active);
                              }
                          },
                      responsive: true,
                      legend: {
                          position: 'top',
                      },
                  }
              });
          };
   &lt;/script&gt;
  </code></pre>