Skip to content

Instantly share code, notes, and snippets.

@xriss
xriss / bartop.js
Last active Dec 16, 2015
chartjs v2 - bartop controller that displays value at top of bar chart using y axis formating
View bartop.js
(function() {
"use strict";
var root = this,
Chart = root.Chart,
helpers = Chart.helpers;
Chart.defaults.bartop = helpers.extendDeep({},Chart.defaults.bar);