UNPKG

@data-ui/histogram

Version:

React + d3 library for creating histograms

13 lines (11 loc) 329 B
"use strict"; exports.__esModule = true; exports.default = getValueKey; function getValueKey(_ref) { var normalized = _ref.normalized, cumulative = _ref.cumulative; if (normalized && cumulative) return 'cumulativeDensity'; if (cumulative) return 'cumulative'; if (normalized) return 'density'; return 'count'; }