js
http://www.chartjs.org/docs/#bar-chart
I am using the basic sample:
HTML
<canvas id="canvas" height="450" width="600"></canvas>
JS
var data = {
labels: ["January", "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]
}
]
};
window.onload = function(){
var ctx = document.getElementById("canvas").getContext("2d");
window.myBar = new Chart(ctx).Bar(data, {
responsive : true
});
}
I wanted to change color of one column. How can I do it? I tried several times a lot of tutorials, but I didnt find solution. Can you help me?