I've tried all resources online and they apply to version 1.6. Also went through the code, but wasn't able to find something in regards to the bar style...has anyone solved this? thanks
var data = {
labels: ["T", "Last Week", "S"],
datasets: [
{
label: "Today",
backgroundColor: ["#FFB800", "#5D3CC5", "#30B200"],
borderColor: ["#C89100", "#22008E", "#268B00"],
borderWidth: 2,
hoverBackgroundColor: "rgba(255,99,132,0.4)",
hoverBorderColor: "rgba(255,99,132,1)",
data: [65, 59, 49]
}
]
};
var ctx = this.$el.getContext("2d");
var myBarChart = new Chart(ctx, {
type: 'horizontalBar',
data: data,
options: {
legend: {
display: false
},
scales: {
yAxes: [{
display: false
// ticks: {
// beginAtZero: true
// }
}],
xAxes: [{
//display: false,
ticks: {
beginAtZero: true
}
}]
},
gridLines: {
display: false
},
tooltips: {
cornerRadius: 6
}
}
});