Chartjs-Stacked Bar Chart, Two on Same Line w/ Same Color

1πŸ‘

βœ…

A quick way to remedy this is to add a tooltip callback to your chart:

jsfiddle

tooltips: {
     callbacks: {
      label: function(tooltipItems, data) {
        if (isNaN(tooltipItems.x)) return null
        return tooltipItems.xLabel
      }
   }
}

Leave a comment