angular-chart.js
angular-chart.js copied to clipboard
Need help on usage of chart-dataset-override
I want show the label - "Minutes" in the chart. But it is not appearing. https://jsfiddle.net/rmshkmr/hhf1vspr/
Where you want to show the label "Minutes"? Can you explain what you need?
While hovering it shows the "Bar Chart" instead i need "Minutes"
@rmshkmr I dont know if this can help you, but give it a shot
this.optionsTransac={
tooltips:{
enabled:true,
xPadding:15,
yPadding:15,
callbacks:{
//remove title
title:function(data){ return [];},
//remove label
label(tooltipItem,data){ return ""; },
//change tooltip body
afterBody: function(data) {
return ['Month of Transaction Date: '+data[0].xLabel,'Year of Transaction Date: 2015','Sale Amount: '+ data[0].yLabel];
}
}
}
}
<canvas id="bar" class="chart chart-bar"
chart-options="$ctrl.optionsTransac" >
</canvas>