JavaScript
var data = {
labels: ["Long Lables January", "Very Long Long Labels February", "March", "April", "May", "June", "July"],
datasets: [{
label: "My First dataset",
fillColor: "rgba(220,220,220,0.5)",
strokeColor: "rgba(220,220,220,0.8)",
highlightFill: "rgba(220,220,220,0.75)",
highlightStroke: "rgba(220,220,220,1)",
data: [65, 59, 80, 81, 56, 55, 40]
}, {
label: "My Second dataset",
fillColor: "rgba(151,187,205,0.5)",
strokeColor: "rgba(151,187,205,0.8)",
highlightFill: "rgba(151,187,205,0.75)",
highlightStroke: "rgba(151,187,205,1)",
data: [28, 48, 40, 19, 86, 27, 90]
}]
};
var opt = {
yAxisMinimumInterval: 5,
scaleOverride: true,
animationStartWithDataset: 1,
animationStartWithData: 1,
animationSteps: 1,
canvasBorders: true,
canvasBordersWidth: 1,
canvasBordersColor: "#fff",
graphTitle: "",
legend: false,
inGraphDataShow: true,
annotateDisplay: true,
graphTitleFontSize: 18,
scaleOverride: true,
scaleStartValue: 0,
scaleSteps: 20,
scaleStepWidth: 100,
responsive: true,
animation: true
}
var ppHorizontalBar = new Chart(document.getElementById("canvas_HorizontalBar1").getContext("2d")).Bar(data, opt);