title: How to keep rounded bar corners when data is filtered chartJs?
body: <p>I came up with this JSFiddle : <a href="https://www.jsfiddle.net/gcb1dyou" rel="nofollow noreferrer">https://www.jsfiddle.net/gcb1dyou</a>  which has rounded chartJs bar corners.Problem is when legend clicked to filter data,corners disappear like below
  <a href="https://i.stack.imgur.com/8NOMa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8NOMa.png" alt="enter image description here"></a></p>
  
  <p>When I clicked orange label as you can see rounded border disappeared on the yellow bar.</p>
  
  <pre><code>var lastVisible = 0;
  for (var findLast = 0, findLastTo = this._chart.data.datasets.length; findLast &lt; findLastTo; findLast++) {
  if (!this._chart.getDatasetMeta(findLast).hidden) {
    lastVisible = findLast;
    if (this._chart.data.datasets[findLastTo - 1].data[this._index] == 0) {
      lastVisible -= 1;
    }
  }
  </code></pre>
  
  <p>}
  Here I tried to add another if to make lastVisible findLast-1 when data is hidden(legend clicked) and previous index is null but didn't work</p>
  
  <pre><code>else{
            if(this._chart.data.datasets[findLastTo - 1].data[this._index] == 0){
              lastVisible=findLastTo-2;
            }
          }
  </code></pre>
  
  <p>How can I solve this?Expecting to see your answers.</p>