score:1

Accepted answer

the x scale left and right paddings are calculated in the calculatexlabelrotation. if you have only these kind of charts you could simply replace this function to return no padding, like below

var originalcalculatexlabelrotation = chart.scale.prototype.calculatexlabelrotation
chart.scale.prototype.calculatexlabelrotation = function () {
    originalcalculatexlabelrotation.apply(this, arguments);
    this.xscalepaddingright = 0;
    this.xscalepaddingleft = 0;
}

fiddle - http://jsfiddle.net/ov9p5qhz/

note that there is still some spacing on the left and right - that comes from your barvaluespacing: 4 option.

if you have other charts on the page that you don't want to keep separate, use chart.noconflict()


Related Query