Currently, I am utilizing chart.js but struggling to create a chart like the one shown below
https://i.sstatic.net/axSFP.jpg
where the bar aligns with the dotted line.
I attempted this approach in JSFIDDLE
Kindly recommend some resources that can help me achieve an exact replica
Here is the JavaScript code I currently have:
<canvas id="myChart" width="100" height="100" padding-right="20px"></canvas>
<script>
var data = {
labels: ["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],
datasets: [
{
label: "My First dataset",
fillColor: "rgba(51,190,139,1)",
strokeColor: "rgba(51,190,139,1)",
highlightFill: "rgba(51,190,139,1)",
highlightStroke: "rgba(51,190,139,1)",
data:[1000,1250,750,1160,500,1500,850],
}
]
};
var ctx = document.getElementById("myChart").getContext("2d");
var myBarChart = new Chart(ctx).Bar(data,{
responsive: true,
barValueSpacing : 10,
});
</script>