@spalger/kibana
Version:
Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic
16 lines (14 loc) • 357 B
JavaScript
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;
});