Hi, I'm working with Chart.js to show different graphs, in the bar graph that the one that brings me the percent fulfilled I need to show the value on top of the bar, someone could help me, I think we have to work in the options with onComplete but I do not have the knowledge to do it.
var barChartData = {
labels: ["Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio"],
datasets: [{
fillColor: "#6b9dfa",
strokeColor: "#ffffff",
highlightFill: "#1864f2",
highlightStroke: "#ffffff",
data: [90, 30, 10, 80, 15, 5, 15]
},
{
fillColor: "#e9e225",
strokeColor: "#ffffff",
highlightFill: "#ee7f49",
highlightStroke: "#ffffff",
data: [40, 50, 70, 40, 85, 55, 15]
}
]
}
var ctx3 = document.getElementById("chart-rea3").getContext("2d");
window.myPie = new Chart(ctx3).Bar(barChartData, {
responsive: true
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.1/Chart.min.js"></script>
<canvas id="chart-rea3" class="pie"></canvas>