docs/a.js
function(datasetIndex) {
			var barIndex = 0;
			var meta, j;

			for (j = 0; j < datasetIndex; ++j) {
				meta = this.chart.getDatasetMeta(j);
				if (meta.bar && this.chart.isDatasetVisible(j)) {
					++barIndex;
				}
			}

			return barIndex;
		}
function(datasetIndex) {
			var barIndex = 0;
			var meta, j;

			for (j = 0; j < datasetIndex; ++j) {
				meta = this.chart.getDatasetMeta(j);
				if (meta.bar && this.chart.isDatasetVisible(j)) {
					++barIndex;
				}
			}

			return barIndex;
		}
function ( datasetIndex ) { var barIndex = 0 ; var meta , j ; for ( j = 0 ; j < datasetIndex ; ++ j ) { meta = this . chart . getDatasetMeta ( j ) ; if ( meta . bar && this . chart . isDatasetVisible ( j ) ) { ++ barIndex ; } } return barIndex ; }
Get bar index from the given dataset index accounting for the fact that not all bars are visible
Get bar index from the given dataset index accounting for the fact that not all bars are visible