UNPKG

kibana-with-account

Version:

kibana-with-account is develop based kibana project

16 lines (14 loc) 357 B
define(function (require) { var d3 = require('d3'); /** * Creates a string based on the hex color passed in * * @method dataLabel * @param d {Object} object to wrap in d3.select * @returns {string} label value */ function dataLabel(selection, label) { d3.select(selection).attr('data-label', label); } return dataLabel; });