'use strict'; var BarController = require('./controller.bar'); var defaults = require('../core/core.defaults'); defaults._set('horizontalBar', { hover: { mode: 'index', axis: 'y' }, scales: { xAxes: [{ type: 'linear', position: 'bottom' }], yAxes: [{ type: 'category', position: 'left', categoryPercentage: 0.8, barPercentage: 0.9, offset: true, gridLines: { offsetGridLines: true } }] }, elements: { rectangle: { borderSkipped: 'left' } }, tooltips: { mode: 'index', axis: 'y' } }); module.exports = BarController.extend({ /** * @private */ _getValueScaleId: function() { return this.getMeta().xAxisID; }, /** * @private */ _getIndexScaleId: function() { return this.getMeta().yAxisID; } });