Socket
Socket
Sign inDemoInstall

d3-scale

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

d3-scale - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

build/bundle.js

@@ -1,1 +0,1 @@

var version = "0.5.0"; export * from "../index"; export {version};
var version = "0.5.1"; export * from "../index"; export {version};

@@ -12,3 +12,3 @@ (function (global, factory) {

var implicit = {};
var implicit = {name: "implicit"};

@@ -276,26 +276,24 @@ function ordinal() {

stop = domain[domain.length - 1],
step = d3Array.tickStep(start, stop, count == null ? 10 : count);
if (specifier == null) {
specifier = ",." + d3Format.precisionFixed(step) + "f";
} else {
switch (specifier = d3Format.formatSpecifier(specifier), specifier.type) {
case "s": {
var value = Math.max(Math.abs(start), Math.abs(stop));
if (specifier.precision == null) specifier.precision = d3Format.precisionPrefix(step, value);
return d3Format.formatPrefix(specifier, value);
}
case "":
case "e":
case "g":
case "p":
case "r": {
if (specifier.precision == null) specifier.precision = d3Format.precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))) - (specifier.type === "e");
break;
}
case "f":
case "%": {
if (specifier.precision == null) specifier.precision = d3Format.precisionFixed(step) - (specifier.type === "%") * 2;
break;
}
step = d3Array.tickStep(start, stop, count == null ? 10 : count),
precision;
specifier = d3Format.formatSpecifier(specifier == null ? ",f" : specifier);
switch (specifier.type) {
case "s": {
var value = Math.max(Math.abs(start), Math.abs(stop));
if (specifier.precision == null && !isNaN(precision = d3Format.precisionPrefix(step, value))) specifier.precision = precision;
return d3Format.formatPrefix(specifier, value);
}
case "":
case "e":
case "g":
case "p":
case "r": {
if (specifier.precision == null && !isNaN(precision = d3Format.precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
break;
}
case "f":
case "%": {
if (specifier.precision == null && !isNaN(precision = d3Format.precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
break;
}
}

@@ -445,9 +443,2 @@ return d3Format.format(specifier);

scale.nice = function() {
return domain(nice(domain(), {
floor: function(x) { return pows(Math.floor(logs(x))); },
ceil: function(x) { return pows(Math.ceil(logs(x))); }
}));
};
scale.ticks = function(count) {

@@ -506,2 +497,9 @@ var d = domain(),

scale.nice = function() {
return domain(nice(domain(), {
floor: function(x) { return pows(Math.floor(logs(x))); },
ceil: function(x) { return pows(Math.ceil(logs(x))); }
}));
};
scale.copy = function() {

@@ -762,9 +760,2 @@ return copy(scale, log().base(base));

scale.nice = function(interval, step) {
var d = domain();
return (interval = tickInterval(interval, d[0], d[d.length - 1], step))
? domain(nice(d, interval))
: scale;
};
scale.ticks = function(interval, step) {

@@ -786,2 +777,9 @@ var d = domain(),

scale.nice = function(interval, step) {
var d = domain();
return (interval = tickInterval(interval, d[0], d[d.length - 1], step))
? domain(nice(d, interval))
: scale;
};
scale.copy = function() {

@@ -908,3 +906,3 @@ return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));

var version = "0.5.0";
var version = "0.5.1";

@@ -911,0 +909,0 @@ exports.version = version;

@@ -1,1 +0,1 @@

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-array"),require("d3-interpolate"),require("d3-format"),require("d3-collection"),require("d3-time"),require("d3-time-format"),require("d3-color")):"function"==typeof define&&define.amd?define("d3-scale",["exports","d3-array","d3-interpolate","d3-format","d3-collection","d3-time","d3-time-format","d3-color"],n):n(e.d3_scale={},e.d3_array,e.d3_interpolate,e.d3_format,e.d3_collection,e.d3_time,e.d3_time_format,e.d3_color)}(this,function(e,n,a,f,c,t,r,d){"use strict";function u(){function e(e){var c=e+"",r=n.get(c);if(!r){if(t!==ue)return t;n.set(c,r=a.push(e))}return f[(r-1)%f.length]}var n=c.map(),a=[],f=[],t=ue;return e.domain=function(f){if(!arguments.length)return a.slice();a=[],n=c.map();for(var t,r,d=-1,u=f.length;++d<u;)n.has(r=(t=f[d])+"")||n.set(r,a.push(t));return e},e.range=function(n){return arguments.length?(f=de.call(n),e):f.slice()},e.unknown=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return u().domain(a).range(f).unknown(t)},e}function i(){function e(){var e=t().length,c=d[1]<d[0],u=d[c-0],i=d[1-c];a=(i-u)/Math.max(1,e-o+2*l),b&&(a=Math.floor(a)),u+=(i-u-a*(e-o))*s,f=a*(1-o),b&&(u=Math.round(u),f=Math.round(f));var g=n.range(e).map(function(e){return u+a*e});return r(c?g.reverse():g)}var a,f,c=u().unknown(void 0),t=c.domain,r=c.range,d=[0,1],b=!1,o=0,l=0,s=.5;return delete c.unknown,c.domain=function(n){return arguments.length?(t(n),e()):t()},c.range=function(n){return arguments.length?(d=[+n[0],+n[1]],e()):d.slice()},c.rangeRound=function(n){return d=[+n[0],+n[1]],b=!0,e()},c.bandwidth=function(){return f},c.step=function(){return a},c.round=function(n){return arguments.length?(b=!!n,e()):b},c.padding=function(n){return arguments.length?(o=l=Math.max(0,Math.min(1,n)),e()):o},c.paddingInner=function(n){return arguments.length?(o=Math.max(0,Math.min(1,n)),e()):o},c.paddingOuter=function(n){return arguments.length?(l=Math.max(0,Math.min(1,n)),e()):l},c.align=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),e()):s},c.copy=function(){return i().domain(t()).range(d).round(b).paddingInner(o).paddingOuter(l).align(s)},e()}function b(e){var n=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return b(n())},e}function o(){return b(i().paddingInner(1))}function l(e){return function(){return e}}function s(e){return+e}function g(e,n){return(n-=e=+e)?function(a){return(a-e)/n}:l(n)}function h(e){return function(n,a){var f=e(n=+n,a=+a);return function(e){return n>=e?0:e>=a?1:f(e)}}}function m(e){return function(n,a){var f=e(n=+n,a=+a);return function(e){return 0>=e?n:e>=1?a:f(e)}}}function p(e,n,a,f){var c=e[0],t=e[1],r=n[0],d=n[1];return c>t?(c=a(t,c),r=f(d,r)):(c=a(c,t),r=f(r,d)),function(e){return r(c(e))}}function M(e,a,f,c){var t=Math.min(e.length,a.length)-1,r=new Array(t),d=new Array(t),u=-1;for(e[t]<e[0]&&(e=e.slice().reverse(),a=a.slice().reverse());++u<t;)r[u]=f(e[u],e[u+1]),d[u]=c(a[u],a[u+1]);return function(a){var f=n.bisect(e,a,1,t)-1;return d[f](r[f](a))}}function v(e,n){return n.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function y(e,n){function f(){var a=Math.min(d.length,u.length)>2?M:p;return t=a(d,u,b?h(e):e,i),r=a(u,d,g,b?m(n):n),c}function c(e){return t(+e)}var t,r,d=ie,u=ie,i=a.interpolate,b=!1;return c.invert=function(e){return r(+e)},c.domain=function(e){return arguments.length?(d=re.call(e,s),f()):d.slice()},c.range=function(e){return arguments.length?(u=de.call(e),f()):u.slice()},c.rangeRound=function(e){return u=de.call(e),i=a.interpolateRound,f()},c.clamp=function(e){return arguments.length?(b=!!e,f()):b},c.interpolate=function(e){return arguments.length?(i=a.interpolateBind.apply(null,arguments),f()):i},f()}function x(e,a,c){var t=e[0],r=e[e.length-1],d=n.tickStep(t,r,null==a?10:a);if(null==c)c=",."+f.precisionFixed(d)+"f";else switch(c=f.formatSpecifier(c),c.type){case"s":var u=Math.max(Math.abs(t),Math.abs(r));return null==c.precision&&(c.precision=f.precisionPrefix(d,u)),f.formatPrefix(c,u);case"":case"e":case"g":case"p":case"r":null==c.precision&&(c.precision=f.precisionRound(d,Math.max(Math.abs(t),Math.abs(r)))-("e"===c.type));break;case"f":case"%":null==c.precision&&(c.precision=f.precisionFixed(d)-2*("%"===c.type))}return f.format(c)}function k(e){var a=e.domain;return e.ticks=function(e){var f=a();return n.ticks(f[0],f[f.length-1],null==e?10:e)},e.tickFormat=function(e,n){return x(a(),e,n)},e.nice=function(f){var c=a(),t=c.length-1,r=null==f?10:f,d=c[0],u=c[t],i=n.tickStep(d,u,r);return i&&(i=n.tickStep(Math.floor(d/i)*i,Math.ceil(u/i)*i,r),c[0]=Math.floor(d/i)*i,c[t]=Math.ceil(u/i)*i,a(c)),e},e}function w(){var e=y(g,a.interpolateNumber);return e.copy=function(){return v(e,w())},k(e)}function N(){function e(e){return+e}var n=[0,1];return e.invert=e,e.domain=e.range=function(a){return arguments.length?(n=re.call(a,s),e):n.slice()},e.copy=function(){return N().domain(n)},k(e)}function C(e,n){e=e.slice();var a,f=0,c=e.length-1,t=e[f],r=e[c];return t>r&&(a=f,f=c,c=a,a=t,t=r,r=a),e[f]=n.floor(t),e[c]=n.ceil(r),e}function q(e,n){return(n=Math.log(n/e))?function(a){return Math.log(a/e)/n}:l(n)}function S(e,n){return 0>e?function(a){return-Math.pow(-n,a)*Math.pow(-e,1-a)}:function(a){return Math.pow(n,a)*Math.pow(e,1-a)}}function I(e){return isFinite(e)?+("1e"+e):0>e?0:e}function _(e){return 10===e?I:e===Math.E?Math.exp:function(n){return Math.pow(e,n)}}function D(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(n){return Math.log(n)/e})}function F(e){return function(n){return-e(-n)}}function O(){function e(){return r=D(t),d=_(t),c()[0]<0&&(r=F(r),d=F(d)),a}var a=y(q,S).domain([1,10]),c=a.domain,t=10,r=D(10),d=_(10);return a.base=function(n){return arguments.length?(t=+n,e()):t},a.domain=function(n){return arguments.length?(c(n),e()):c()},a.nice=function(){return c(C(c(),{floor:function(e){return d(Math.floor(r(e)))},ceil:function(e){return d(Math.ceil(r(e)))}}))},a.ticks=function(e){var a,f=c(),u=f[0],i=f[f.length-1];(a=u>i)&&(s=u,u=i,i=s);var b,o,l,s=r(u),g=r(i),h=null==e?10:+e,m=[];if(!(t%1)&&h>g-s){if(s=Math.round(s)-1,g=Math.round(g)+1,u>0){for(;g>s;++s)for(o=1,b=d(s);t>o;++o)if(l=b*o,!(u>l)){if(l>i)break;m.push(l)}}else for(;g>s;++s)for(o=t-1,b=d(s);o>=1;--o)if(l=b*o,!(u>l)){if(l>i)break;m.push(l)}a&&m.reverse()}else m=n.ticks(s,g,Math.min(g-s,h)).map(d);return m},a.tickFormat=function(e,n){if(null==n?n=10===t?be:oe:"function"!=typeof n&&(n=f.format(n)),null==e)return n;var c=Math.max(1,t*e/a.ticks().length);return function(e){var a=e/d(Math.round(r(e)));return t-.5>a*t&&(a*=t),c>=a?n(e):""}},a.copy=function(){return v(a,O().base(t))},a}function L(e,n){return 0>e?-Math.pow(-e,n):Math.pow(e,n)}function A(){function e(e,n){return(n=L(n,a)-(e=L(e,a)))?function(f){return(L(f,a)-e)/n}:l(n)}function n(e,n){return n=L(n,a)-(e=L(e,a)),function(f){return L(e+n*f,1/a)}}var a=1,f=y(e,n),c=f.domain;return f.exponent=function(e){return arguments.length?(a=+e,c(c())):a},f.copy=function(){return v(f,A().exponent(a))},k(f)}function E(){return A().exponent(.5)}function P(){function e(){var e=0,r=Math.max(1,c.length);for(t=new Array(r-1);++e<r;)t[e-1]=n.quantile(f,e/r);return a}function a(e){return isNaN(e=+e)?void 0:c[n.bisect(t,e)]}var f=[],c=[],t=[];return a.invertExtent=function(e){var n=c.indexOf(e);return 0>n?[NaN,NaN]:[n>0?t[n-1]:f[0],n<t.length?t[n]:f[f.length-1]]},a.domain=function(a){if(!arguments.length)return f.slice();f=[];for(var c,t=0,r=a.length;r>t;++t)c=a[t],null==c||isNaN(c=+c)||f.push(c);return f.sort(n.ascending),e()},a.range=function(n){return arguments.length?(c=de.call(n),e()):c.slice()},a.quantiles=function(){return t.slice()},a.copy=function(){return P().domain(f).range(c)},a}function R(){function e(e){return e>=e?d[n.bisect(r,e,0,t)]:void 0}function a(){var n=-1;for(r=new Array(t);++n<t;)r[n]=((n+1)*c-(n-t)*f)/(t+1);return e}var f=0,c=1,t=1,r=[.5],d=[0,1];return e.domain=function(e){return arguments.length?(f=+e[0],c=+e[1],a()):[f,c]},e.range=function(e){return arguments.length?(t=(d=de.call(e)).length-1,a()):d.slice()},e.invertExtent=function(e){var n=d.indexOf(e);return 0>n?[NaN,NaN]:1>n?[f,r[0]]:n>=t?[r[t-1],c]:[r[n-1],r[n]]},e.copy=function(){return R().domain([f,c]).range(d)},k(e)}function T(){function e(e){return e>=e?f[n.bisect(a,e,0,c)]:void 0}var a=[.5],f=[0,1],c=1;return e.domain=function(n){return arguments.length?(a=de.call(n),c=Math.min(a.length,f.length-1),e):a.slice()},e.range=function(n){return arguments.length?(f=de.call(n),c=Math.min(a.length,f.length-1),e):f.slice()},e.invertExtent=function(e){var n=f.indexOf(e);return[a[n-1],a[n]]},e.copy=function(){return T().domain(a).range(f)},e}function B(e){return new Date(e)}function U(e,f,c,t,r,d,u,i,b){function o(n){return(u(n)<n?p:d(n)<n?M:r(n)<n?x:t(n)<n?k:f(n)<n?c(n)<n?w:N:e(n)<n?q:S)(n)}function l(a,f,c,t){if(null==a&&(a=10),"number"==typeof a){var r=Math.abs(c-f)/a,d=ve(I,r);d===I.length?(t=n.tickStep(f/Me,c/Me,a),a=e):d?(d=I[r/I[d-1][2]<I[d][2]/r?d-1:d],t=d[1],a=d[0]):(t=n.tickStep(f,c,a),a=i)}return null==t?a:a.every(t)}var s=y(g,a.interpolateNumber),h=s.invert,m=s.domain,p=b(".%L"),M=b(":%S"),x=b("%I:%M"),k=b("%I %p"),w=b("%a %d"),N=b("%b %d"),q=b("%B"),S=b("%Y"),I=[[u,1,le],[u,5,5*le],[u,15,15*le],[u,30,30*le],[d,1,se],[d,5,5*se],[d,15,15*se],[d,30,30*se],[r,1,ge],[r,3,3*ge],[r,6,6*ge],[r,12,12*ge],[t,1,he],[t,2,2*he],[c,1,me],[f,1,pe],[f,3,3*pe],[e,1,Me]];return s.invert=function(e){return new Date(h(e))},s.domain=function(e){return arguments.length?m(e):m().map(B)},s.nice=function(e,n){var a=m();return(e=l(e,a[0],a[a.length-1],n))?m(C(a,e)):s},s.ticks=function(e,n){var a,f=m(),c=f[0],t=f[f.length-1],r=c>t;return r&&(a=c,c=t,t=a),a=l(e,c,t,n),a=a?a.range(c,t+1):[],r?a.reverse():a},s.tickFormat=function(e){return null==e?o:b(e)},s.copy=function(){return v(s,U(e,f,c,t,r,d,u,i,b))},s}function W(){return U(t.timeYear,t.timeMonth,t.timeWeek,t.timeDay,t.timeHour,t.timeMinute,t.timeSecond,t.timeMillisecond,r.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function Y(){return U(t.utcYear,t.utcMonth,t.utcWeek,t.utcDay,t.utcHour,t.utcMinute,t.utcSecond,t.utcMillisecond,r.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function H(e){return e.match(/.{6}/g).map(function(e){return"#"+e})}function Q(){return u().range(H("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"))}function j(){return u().range(H("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"))}function z(){return u().range(H("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"))}function V(){return u().range(H("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"))}function G(){return w().interpolate(a.interpolateCubehelixLong).range([d.cubehelix(300,.5,0),d.cubehelix(-240,.5,1)])}function J(e){function n(n){var t=(n-a)/(f-a);return e(c?Math.max(0,Math.min(1,t)):t)}var a=0,f=1,c=!1;return n.domain=function(e){return arguments.length?(a=+e[0],f=+e[1],n):[a,f]},n.clamp=function(e){return arguments.length?(c=!!e,n):c},n.copy=function(){return J(e).domain([a,f]).clamp(c)},k(n)}function K(e){(0>e||e>1)&&(e-=Math.floor(e));var n=Math.abs(e-.5);return we.h=360*e-100,we.s=1.5-1.5*n,we.l=.8-.9*n,we+""}function X(){return J(Ne)}function Z(){return J(Ce)}function $(){return J(K)}function ee(e){var n=J(function(n){return e[Math.round(n*e.length-n)]}).clamp(!0);return delete n.clamp,n}function ne(){return ee(qe)}function ae(){return ee(Se)}function fe(){return ee(Ie)}function ce(){return ee(_e)}var te=Array.prototype,re=te.map,de=te.slice,ue={},ie=[0,1],be=f.format(".0e"),oe=f.format(","),le=1e3,se=60*le,ge=60*se,he=24*ge,me=7*he,pe=30*he,Me=365*he,ve=n.bisector(function(e){return e[2]}).right,ye=d.cubehelix(-100,.75,.35),xe=d.cubehelix(80,1.5,.8),ke=d.cubehelix(260,.75,.35),we=d.cubehelix(),Ne=a.interpolateCubehelixLong(ye,xe),Ce=a.interpolateCubehelixLong(ke,xe),qe=H("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"),Se=H("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"),Ie=H("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"),_e=H("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"),De="0.5.0";e.version=De,e.scaleBand=i,e.scalePoint=o,e.scaleIdentity=N,e.scaleLinear=w,e.scaleLog=O,e.scaleOrdinal=u,e.scaleImplicit=ue,e.scalePow=A,e.scaleSqrt=E,e.scaleQuantile=P,e.scaleQuantize=R,e.scaleThreshold=T,e.scaleTime=W,e.scaleUtc=Y,e.scaleCategory10=Q,e.scaleCategory20b=j,e.scaleCategory20c=z,e.scaleCategory20=V,e.scaleCubehelix=G,e.scaleRainbow=$,e.scaleWarm=X,e.scaleCool=Z,e.scaleViridis=ne,e.scaleMagma=ae,e.scaleInferno=fe,e.scalePlasma=ce});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("d3-array"),require("d3-interpolate"),require("d3-format"),require("d3-collection"),require("d3-time"),require("d3-time-format"),require("d3-color")):"function"==typeof define&&define.amd?define("d3-scale",["exports","d3-array","d3-interpolate","d3-format","d3-collection","d3-time","d3-time-format","d3-color"],n):n(e.d3_scale={},e.d3_array,e.d3_interpolate,e.d3_format,e.d3_collection,e.d3_time,e.d3_time_format,e.d3_color)}(this,function(e,n,a,f,c,t,r,d){"use strict";function u(){function e(e){var c=e+"",r=n.get(c);if(!r){if(t!==ue)return t;n.set(c,r=a.push(e))}return f[(r-1)%f.length]}var n=c.map(),a=[],f=[],t=ue;return e.domain=function(f){if(!arguments.length)return a.slice();a=[],n=c.map();for(var t,r,d=-1,u=f.length;++d<u;)n.has(r=(t=f[d])+"")||n.set(r,a.push(t));return e},e.range=function(n){return arguments.length?(f=de.call(n),e):f.slice()},e.unknown=function(n){return arguments.length?(t=n,e):t},e.copy=function(){return u().domain(a).range(f).unknown(t)},e}function i(){function e(){var e=t().length,c=d[1]<d[0],u=d[c-0],i=d[1-c];a=(i-u)/Math.max(1,e-o+2*l),b&&(a=Math.floor(a)),u+=(i-u-a*(e-o))*s,f=a*(1-o),b&&(u=Math.round(u),f=Math.round(f));var g=n.range(e).map(function(e){return u+a*e});return r(c?g.reverse():g)}var a,f,c=u().unknown(void 0),t=c.domain,r=c.range,d=[0,1],b=!1,o=0,l=0,s=.5;return delete c.unknown,c.domain=function(n){return arguments.length?(t(n),e()):t()},c.range=function(n){return arguments.length?(d=[+n[0],+n[1]],e()):d.slice()},c.rangeRound=function(n){return d=[+n[0],+n[1]],b=!0,e()},c.bandwidth=function(){return f},c.step=function(){return a},c.round=function(n){return arguments.length?(b=!!n,e()):b},c.padding=function(n){return arguments.length?(o=l=Math.max(0,Math.min(1,n)),e()):o},c.paddingInner=function(n){return arguments.length?(o=Math.max(0,Math.min(1,n)),e()):o},c.paddingOuter=function(n){return arguments.length?(l=Math.max(0,Math.min(1,n)),e()):l},c.align=function(n){return arguments.length?(s=Math.max(0,Math.min(1,n)),e()):s},c.copy=function(){return i().domain(t()).range(d).round(b).paddingInner(o).paddingOuter(l).align(s)},e()}function b(e){var n=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return b(n())},e}function o(){return b(i().paddingInner(1))}function l(e){return function(){return e}}function s(e){return+e}function g(e,n){return(n-=e=+e)?function(a){return(a-e)/n}:l(n)}function h(e){return function(n,a){var f=e(n=+n,a=+a);return function(e){return n>=e?0:e>=a?1:f(e)}}}function m(e){return function(n,a){var f=e(n=+n,a=+a);return function(e){return 0>=e?n:e>=1?a:f(e)}}}function p(e,n,a,f){var c=e[0],t=e[1],r=n[0],d=n[1];return c>t?(c=a(t,c),r=f(d,r)):(c=a(c,t),r=f(r,d)),function(e){return r(c(e))}}function M(e,a,f,c){var t=Math.min(e.length,a.length)-1,r=new Array(t),d=new Array(t),u=-1;for(e[t]<e[0]&&(e=e.slice().reverse(),a=a.slice().reverse());++u<t;)r[u]=f(e[u],e[u+1]),d[u]=c(a[u],a[u+1]);return function(a){var f=n.bisect(e,a,1,t)-1;return d[f](r[f](a))}}function v(e,n){return n.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function y(e,n){function f(){var a=Math.min(d.length,u.length)>2?M:p;return t=a(d,u,b?h(e):e,i),r=a(u,d,g,b?m(n):n),c}function c(e){return t(+e)}var t,r,d=ie,u=ie,i=a.interpolate,b=!1;return c.invert=function(e){return r(+e)},c.domain=function(e){return arguments.length?(d=re.call(e,s),f()):d.slice()},c.range=function(e){return arguments.length?(u=de.call(e),f()):u.slice()},c.rangeRound=function(e){return u=de.call(e),i=a.interpolateRound,f()},c.clamp=function(e){return arguments.length?(b=!!e,f()):b},c.interpolate=function(e){return arguments.length?(i=a.interpolateBind.apply(null,arguments),f()):i},f()}function x(e,a,c){var t,r=e[0],d=e[e.length-1],u=n.tickStep(r,d,null==a?10:a);switch(c=f.formatSpecifier(null==c?",f":c),c.type){case"s":var i=Math.max(Math.abs(r),Math.abs(d));return null!=c.precision||isNaN(t=f.precisionPrefix(u,i))||(c.precision=t),f.formatPrefix(c,i);case"":case"e":case"g":case"p":case"r":null!=c.precision||isNaN(t=f.precisionRound(u,Math.max(Math.abs(r),Math.abs(d))))||(c.precision=t-("e"===c.type));break;case"f":case"%":null!=c.precision||isNaN(t=f.precisionFixed(u))||(c.precision=t-2*("%"===c.type))}return f.format(c)}function k(e){var a=e.domain;return e.ticks=function(e){var f=a();return n.ticks(f[0],f[f.length-1],null==e?10:e)},e.tickFormat=function(e,n){return x(a(),e,n)},e.nice=function(f){var c=a(),t=c.length-1,r=null==f?10:f,d=c[0],u=c[t],i=n.tickStep(d,u,r);return i&&(i=n.tickStep(Math.floor(d/i)*i,Math.ceil(u/i)*i,r),c[0]=Math.floor(d/i)*i,c[t]=Math.ceil(u/i)*i,a(c)),e},e}function w(){var e=y(g,a.interpolateNumber);return e.copy=function(){return v(e,w())},k(e)}function N(){function e(e){return+e}var n=[0,1];return e.invert=e,e.domain=e.range=function(a){return arguments.length?(n=re.call(a,s),e):n.slice()},e.copy=function(){return N().domain(n)},k(e)}function C(e,n){e=e.slice();var a,f=0,c=e.length-1,t=e[f],r=e[c];return t>r&&(a=f,f=c,c=a,a=t,t=r,r=a),e[f]=n.floor(t),e[c]=n.ceil(r),e}function q(e,n){return(n=Math.log(n/e))?function(a){return Math.log(a/e)/n}:l(n)}function S(e,n){return 0>e?function(a){return-Math.pow(-n,a)*Math.pow(-e,1-a)}:function(a){return Math.pow(n,a)*Math.pow(e,1-a)}}function I(e){return isFinite(e)?+("1e"+e):0>e?0:e}function _(e){return 10===e?I:e===Math.E?Math.exp:function(n){return Math.pow(e,n)}}function D(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(n){return Math.log(n)/e})}function O(e){return function(n){return-e(-n)}}function F(){function e(){return r=D(t),d=_(t),c()[0]<0&&(r=O(r),d=O(d)),a}var a=y(q,S).domain([1,10]),c=a.domain,t=10,r=D(10),d=_(10);return a.base=function(n){return arguments.length?(t=+n,e()):t},a.domain=function(n){return arguments.length?(c(n),e()):c()},a.ticks=function(e){var a,f=c(),u=f[0],i=f[f.length-1];(a=u>i)&&(s=u,u=i,i=s);var b,o,l,s=r(u),g=r(i),h=null==e?10:+e,m=[];if(!(t%1)&&h>g-s){if(s=Math.round(s)-1,g=Math.round(g)+1,u>0){for(;g>s;++s)for(o=1,b=d(s);t>o;++o)if(l=b*o,!(u>l)){if(l>i)break;m.push(l)}}else for(;g>s;++s)for(o=t-1,b=d(s);o>=1;--o)if(l=b*o,!(u>l)){if(l>i)break;m.push(l)}a&&m.reverse()}else m=n.ticks(s,g,Math.min(g-s,h)).map(d);return m},a.tickFormat=function(e,n){if(null==n?n=10===t?be:oe:"function"!=typeof n&&(n=f.format(n)),null==e)return n;var c=Math.max(1,t*e/a.ticks().length);return function(e){var a=e/d(Math.round(r(e)));return t-.5>a*t&&(a*=t),c>=a?n(e):""}},a.nice=function(){return c(C(c(),{floor:function(e){return d(Math.floor(r(e)))},ceil:function(e){return d(Math.ceil(r(e)))}}))},a.copy=function(){return v(a,F().base(t))},a}function L(e,n){return 0>e?-Math.pow(-e,n):Math.pow(e,n)}function A(){function e(e,n){return(n=L(n,a)-(e=L(e,a)))?function(f){return(L(f,a)-e)/n}:l(n)}function n(e,n){return n=L(n,a)-(e=L(e,a)),function(f){return L(e+n*f,1/a)}}var a=1,f=y(e,n),c=f.domain;return f.exponent=function(e){return arguments.length?(a=+e,c(c())):a},f.copy=function(){return v(f,A().exponent(a))},k(f)}function E(){return A().exponent(.5)}function P(){function e(){var e=0,r=Math.max(1,c.length);for(t=new Array(r-1);++e<r;)t[e-1]=n.quantile(f,e/r);return a}function a(e){return isNaN(e=+e)?void 0:c[n.bisect(t,e)]}var f=[],c=[],t=[];return a.invertExtent=function(e){var n=c.indexOf(e);return 0>n?[NaN,NaN]:[n>0?t[n-1]:f[0],n<t.length?t[n]:f[f.length-1]]},a.domain=function(a){if(!arguments.length)return f.slice();f=[];for(var c,t=0,r=a.length;r>t;++t)c=a[t],null==c||isNaN(c=+c)||f.push(c);return f.sort(n.ascending),e()},a.range=function(n){return arguments.length?(c=de.call(n),e()):c.slice()},a.quantiles=function(){return t.slice()},a.copy=function(){return P().domain(f).range(c)},a}function R(){function e(e){return e>=e?d[n.bisect(r,e,0,t)]:void 0}function a(){var n=-1;for(r=new Array(t);++n<t;)r[n]=((n+1)*c-(n-t)*f)/(t+1);return e}var f=0,c=1,t=1,r=[.5],d=[0,1];return e.domain=function(e){return arguments.length?(f=+e[0],c=+e[1],a()):[f,c]},e.range=function(e){return arguments.length?(t=(d=de.call(e)).length-1,a()):d.slice()},e.invertExtent=function(e){var n=d.indexOf(e);return 0>n?[NaN,NaN]:1>n?[f,r[0]]:n>=t?[r[t-1],c]:[r[n-1],r[n]]},e.copy=function(){return R().domain([f,c]).range(d)},k(e)}function T(){function e(e){return e>=e?f[n.bisect(a,e,0,c)]:void 0}var a=[.5],f=[0,1],c=1;return e.domain=function(n){return arguments.length?(a=de.call(n),c=Math.min(a.length,f.length-1),e):a.slice()},e.range=function(n){return arguments.length?(f=de.call(n),c=Math.min(a.length,f.length-1),e):f.slice()},e.invertExtent=function(e){var n=f.indexOf(e);return[a[n-1],a[n]]},e.copy=function(){return T().domain(a).range(f)},e}function B(e){return new Date(e)}function U(e,f,c,t,r,d,u,i,b){function o(n){return(u(n)<n?p:d(n)<n?M:r(n)<n?x:t(n)<n?k:f(n)<n?c(n)<n?w:N:e(n)<n?q:S)(n)}function l(a,f,c,t){if(null==a&&(a=10),"number"==typeof a){var r=Math.abs(c-f)/a,d=ve(I,r);d===I.length?(t=n.tickStep(f/Me,c/Me,a),a=e):d?(d=I[r/I[d-1][2]<I[d][2]/r?d-1:d],t=d[1],a=d[0]):(t=n.tickStep(f,c,a),a=i)}return null==t?a:a.every(t)}var s=y(g,a.interpolateNumber),h=s.invert,m=s.domain,p=b(".%L"),M=b(":%S"),x=b("%I:%M"),k=b("%I %p"),w=b("%a %d"),N=b("%b %d"),q=b("%B"),S=b("%Y"),I=[[u,1,le],[u,5,5*le],[u,15,15*le],[u,30,30*le],[d,1,se],[d,5,5*se],[d,15,15*se],[d,30,30*se],[r,1,ge],[r,3,3*ge],[r,6,6*ge],[r,12,12*ge],[t,1,he],[t,2,2*he],[c,1,me],[f,1,pe],[f,3,3*pe],[e,1,Me]];return s.invert=function(e){return new Date(h(e))},s.domain=function(e){return arguments.length?m(e):m().map(B)},s.ticks=function(e,n){var a,f=m(),c=f[0],t=f[f.length-1],r=c>t;return r&&(a=c,c=t,t=a),a=l(e,c,t,n),a=a?a.range(c,t+1):[],r?a.reverse():a},s.tickFormat=function(e){return null==e?o:b(e)},s.nice=function(e,n){var a=m();return(e=l(e,a[0],a[a.length-1],n))?m(C(a,e)):s},s.copy=function(){return v(s,U(e,f,c,t,r,d,u,i,b))},s}function W(){return U(t.timeYear,t.timeMonth,t.timeWeek,t.timeDay,t.timeHour,t.timeMinute,t.timeSecond,t.timeMillisecond,r.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)])}function Y(){return U(t.utcYear,t.utcMonth,t.utcWeek,t.utcDay,t.utcHour,t.utcMinute,t.utcSecond,t.utcMillisecond,r.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])}function H(e){return e.match(/.{6}/g).map(function(e){return"#"+e})}function Q(){return u().range(H("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"))}function j(){return u().range(H("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6"))}function z(){return u().range(H("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9"))}function V(){return u().range(H("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5"))}function G(){return w().interpolate(a.interpolateCubehelixLong).range([d.cubehelix(300,.5,0),d.cubehelix(-240,.5,1)])}function J(e){function n(n){var t=(n-a)/(f-a);return e(c?Math.max(0,Math.min(1,t)):t)}var a=0,f=1,c=!1;return n.domain=function(e){return arguments.length?(a=+e[0],f=+e[1],n):[a,f]},n.clamp=function(e){return arguments.length?(c=!!e,n):c},n.copy=function(){return J(e).domain([a,f]).clamp(c)},k(n)}function K(e){(0>e||e>1)&&(e-=Math.floor(e));var n=Math.abs(e-.5);return we.h=360*e-100,we.s=1.5-1.5*n,we.l=.8-.9*n,we+""}function X(){return J(Ne)}function Z(){return J(Ce)}function $(){return J(K)}function ee(e){var n=J(function(n){return e[Math.round(n*e.length-n)]}).clamp(!0);return delete n.clamp,n}function ne(){return ee(qe)}function ae(){return ee(Se)}function fe(){return ee(Ie)}function ce(){return ee(_e)}var te=Array.prototype,re=te.map,de=te.slice,ue={name:"implicit"},ie=[0,1],be=f.format(".0e"),oe=f.format(","),le=1e3,se=60*le,ge=60*se,he=24*ge,me=7*he,pe=30*he,Me=365*he,ve=n.bisector(function(e){return e[2]}).right,ye=d.cubehelix(-100,.75,.35),xe=d.cubehelix(80,1.5,.8),ke=d.cubehelix(260,.75,.35),we=d.cubehelix(),Ne=a.interpolateCubehelixLong(ye,xe),Ce=a.interpolateCubehelixLong(ke,xe),qe=H("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"),Se=H("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"),Ie=H("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"),_e=H("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"),De="0.5.1";e.version=De,e.scaleBand=i,e.scalePoint=o,e.scaleIdentity=N,e.scaleLinear=w,e.scaleLog=F,e.scaleOrdinal=u,e.scaleImplicit=ue,e.scalePow=A,e.scaleSqrt=E,e.scaleQuantile=P,e.scaleQuantize=R,e.scaleThreshold=T,e.scaleTime=W,e.scaleUtc=Y,e.scaleCategory10=Q,e.scaleCategory20b=j,e.scaleCategory20c=z,e.scaleCategory20=V,e.scaleCubehelix=G,e.scaleRainbow=$,e.scaleWarm=X,e.scaleCool=Z,e.scaleViridis=ne,e.scaleMagma=ae,e.scaleInferno=fe,e.scalePlasma=ce});
{
"name": "d3-scale",
"version": "0.5.0",
"version": "0.5.1",
"description": "Encodings that map abstract data to visual representation.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -50,3 +50,3 @@ # d3-scale

<a name="continuous" href="#continuous">#</a> <i>continuous</i>(<i>value</i>)
<a name="_continuous" href="#_continuous">#</a> <i>continuous</i>(<i>value</i>)

@@ -217,2 +217,10 @@ Given a *value* from the [domain](#continuous_domain), returns the corresponding value from the [range](#continuous_range). If the given *value* is outside the domain, and [clamping](#continuous_clamp) is not enabled, the mapping may be extrapolated such that the returned value is outside the range. For example, to apply a position encoding:

<a name="pow" href="#_pow">#</a> <i>pow</i>(<i>value</i>)
See [*continuous*](#_continuous).
<a name="pow_invert" href="#pow_invert">#</a> <i>pow</i>.<b>invert</b>(<i>value</i>)
See [*continuous*.invert](#continuous_invert).
<a name="pow_exponent" href="#pow_exponent">#</a> <i>pow</i>.<b>exponent</b>([<i>exponent</i>])

@@ -222,2 +230,38 @@

<a name="pow_domain" href="#pow_domain">#</a> <i>pow</i>.<b>domain</b>([<i>domain</i>])
See [*continuous*.domain](#continuous_domain).
<a name="pow_range" href="#pow_range">#</a> <i>pow</i>.<b>range</b>([<i>range</i>])
See [*continuous*.range](#continuous_range).
<a name="pow_rangeRound" href="#pow_rangeRound">#</a> <i>pow</i>.<b>rangeRound</b>([<i>range</i>])
See [*continuous*.rangeRound](#continuous_rangeRound).
<a name="pow_clamp" href="#pow_clamp">#</a> <i>pow</i>.<b>clamp</b>(<i>clamp</i>)
See [*continuous*.clamp](#continuous_clamp).
<a name="pow_interpolate" href="#pow_interpolate">#</a> <i>pow</i>.<b>interpolate</b>(<i>interpolate</i>[, <i>parameters…</i>])
See [*continuous*.interpolate](#continuous_interpolate).
<a name="pow_ticks" href="#pow_ticks">#</a> <i>pow</i>.<b>ticks</b>([<i>count</i>])
See [*continuous*.ticks](#continuous_ticks).
<a name="pow_tickFormat" href="#pow_tickFormat">#</a> <i>pow</i>.<b>tickFormat</b>([<i>count</i>[, <i>specifier</i>]])
See [*continuous*.tickFormat](#continuous_tickFormat).
<a name="pow_nice" href="#pow_nice">#</a> <i>pow</i>.<b>nice</b>([<i>count</i>])
See [*continuous*.nice](#continuous_nice).
<a name="pow_copy" href="#pow_copy">#</a> <i>pow</i>.<b>copy</b>()
See [*continuous*.copy](#continuous_copy).
<a name="scaleSqrt" href="#scaleSqrt">#</a> d3.<b>scaleSqrt</b>()

@@ -235,4 +279,12 @@

Constructs a new [continuous scale](#continuous-scales) with the [domain](#continuous_domain) [1, 10], the unit [range](#continuous_range) [0, 1], the [base](#log_base) 10, the [default](https://github.com/d3/d3-interpolate#interpolate) [interpolator](#continuous_interpolate) and [clamping](#continuous_clamp) disabled.
Constructs a new [continuous scale](#continuous-scales) with the [domain](#log_domain) [1, 10], the unit [range](#log_range) [0, 1], the [base](#log_base) 10, the [default](https://github.com/d3/d3-interpolate#interpolate) [interpolator](#log_interpolate) and [clamping](#log_clamp) disabled.
<a name="log" href="#_log">#</a> <i>log</i>(<i>value</i>)
See [*continuous*](#_continuous).
<a name="log_invert" href="#log_invert">#</a> <i>log</i>.<b>invert</b>(<i>value</i>)
See [*continuous*.invert](#continuous_invert).
<a name="log_base" href="#log_base">#</a> <i>log</i>.<b>base</b>([<i>base</i>])

@@ -242,9 +294,25 @@

<a name="log_nice" href="#log_nice">#</a> <i>log</i>.<b>nice</b>()
<a name="log_domain" href="#log_domain">#</a> <i>log</i>.<b>domain</b>([<i>domain</i>])
Like [*continuous*.nice](#continuous_nice), except extends the domain to integer powers of [base](#log_base). For example, for a domain of [0.201479…, 0.996679…], and base 10, the nice domain is [0.1, 1]. If the domain has more than two values, nicing the domain only affects the first and last value.
See [*continuous*.domain](#continuous_domain).
<a name="log_range" href="#log_range">#</a> <i>log</i>.<b>range</b>([<i>range</i>])
See [*continuous*.range](#continuous_range).
<a name="log_rangeRound" href="#log_rangeRound">#</a> <i>log</i>.<b>rangeRound</b>([<i>range</i>])
See [*continuous*.rangeRound](#continuous_rangeRound).
<a name="log_clamp" href="#log_clamp">#</a> <i>log</i>.<b>clamp</b>(<i>clamp</i>)
See [*continuous*.clamp](#continuous_clamp).
<a name="log_interpolate" href="#log_interpolate">#</a> <i>log</i>.<b>interpolate</b>(<i>interpolate</i>[, <i>parameters…</i>])
See [*continuous*.interpolate](#continuous_interpolate).
<a name="log_ticks" href="#log_ticks">#</a> <i>log</i>.<b>ticks</b>([<i>count</i>])
Like [*continuous*.ticks](#continuous_ticks), but customized for a log scale. If the [base](#log_base) is an integer, the returned ticks are uniformly spaced within each integer power of base; otherwise, one tick per power of base is returned. The returned ticks are guaranteed to be within the extent of the domain. If the orders of magnitude in the [domain](#continuous_domain) is greater than *count*, then at most one tick per power is returned. Otherwise, the tick values are unfiltered, but note that you can use [*log*.tickFormat](#log_tickFormat) to filter the display of tick lables. If *count* is not specified, it defaults to 10.
Like [*continuous*.ticks](#continuous_ticks), but customized for a log scale. If the [base](#log_base) is an integer, the returned ticks are uniformly spaced within each integer power of base; otherwise, one tick per power of base is returned. The returned ticks are guaranteed to be within the extent of the domain. If the orders of magnitude in the [domain](#log_domain) is greater than *count*, then at most one tick per power is returned. Otherwise, the tick values are unfiltered, but note that you can use [*log*.tickFormat](#log_tickFormat) to filter the display of tick lables. If *count* is not specified, it defaults to 10.

@@ -255,2 +323,10 @@ <a name="log_tickFormat" href="#log_tickFormat">#</a> <i>log</i>.<b>tickFormat</b>([<i>count</i>[, <i>specifier</i>]])

<a name="log_nice" href="#log_nice">#</a> <i>log</i>.<b>nice</b>()
Like [*continuous*.nice](#continuous_nice), except extends the domain to integer powers of [base](#log_base). For example, for a domain of [0.201479…, 0.996679…], and base 10, the nice domain is [0.1, 1]. If the domain has more than two values, nicing the domain only affects the first and last value.
<a name="log_copy" href="#log_copy">#</a> <i>log</i>.<b>copy</b>()
See [*continuous*.copy](#continuous_copy).
#### Identity Scales

@@ -285,8 +361,36 @@

Constructs a new time scale with the [domain](#continuous_domain) [2000-01-01, 2000-01-02], the unit [range](#continuous_range) [0, 1], the [default](https://github.com/d3/d3-interpolate#interpolate) [interpolator](#continuous_interpolate) and [clamping](#continuous_clamp) disabled.
Constructs a new time scale with the [domain](#time_domain) [2000-01-01, 2000-01-02], the unit [range](#time_range) [0, 1], the [default](https://github.com/d3/d3-interpolate#interpolate) [interpolator](#time_interpolate) and [clamping](#time_clamp) disabled.
<a name="time" href="#_time">#</a> <i>time</i>(<i>value</i>)
See [*continuous*](#_continuous).
<a name="time_invert" href="#time_invert">#</a> <i>time</i>.<b>invert</b>(<i>value</i>)
See [*continuous*.invert](#continuous_invert).
<a name="time_domain" href="#time_domain">#</a> <i>time</i>.<b>domain</b>([<i>domain</i>])
See [*continuous*.domain](#continuous_domain).
<a name="time_range" href="#time_range">#</a> <i>time</i>.<b>range</b>([<i>range</i>])
See [*continuous*.range](#continuous_range).
<a name="time_rangeRound" href="#time_rangeRound">#</a> <i>time</i>.<b>rangeRound</b>([<i>range</i>])
See [*continuous*.rangeRound](#continuous_rangeRound).
<a name="time_clamp" href="#time_clamp">#</a> <i>time</i>.<b>clamp</b>(<i>clamp</i>)
See [*continuous*.clamp](#continuous_clamp).
<a name="time_interpolate" href="#time_interpolate">#</a> <i>time</i>.<b>interpolate</b>(<i>interpolate</i>[, <i>parameters…</i>])
See [*continuous*.interpolate](#continuous_interpolate).
<a name="time_ticks" href="#time_ticks">#</a> <i>time</i>.<b>ticks</b>([<i>count</i>])
<br><a name="time_ticks" href="#time_ticks">#</a> <i>time</i>.<b>ticks</b>([<i>interval</i>[, <i>step</i>]])
Returns representative dates from the scale’s [domain](#continuous_domain). The returned tick values are uniformly-spaced (mostly), have sensible values (such as every day at midnight), and are guaranteed to be within the extent of the domain. Ticks are often used to display reference lines, or tick marks, in conjunction with the visualized data.
Returns representative dates from the scale’s [domain](#time_domain). The returned tick values are uniformly-spaced (mostly), have sensible values (such as every day at midnight), and are guaranteed to be within the extent of the domain. Ticks are often used to display reference lines, or tick marks, in conjunction with the visualized data.

@@ -366,3 +470,3 @@ An optional *count* may be specified to affect how many ticks are generated. If *count* is not specified, it defaults to 10. The specified *count* is only a hint; the scale may return more or fewer values depending on the domain. For example, to create ten default ticks, say:

Extends the [domain](#continuous_domain) so that it starts and ends on nice round values. This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value.
Extends the [domain](#time_domain) so that it starts and ends on nice round values. This method typically modifies the scale’s domain, and may only extend the bounds to the nearest round value.

@@ -482,6 +586,2 @@ An optional tick *count* argument allows greater control over the step size used to extend the bounds, guaranteeing that the returned [ticks](#time_ticks) will exactly cover the domain. Alternatively, a [time *interval*](https://github.com/d3/d3-time#intervals) may be specified to explicitly set the ticks. If an *interval* is specified, an optional *step* may also be specified to skip some ticks. For example, `time.nice(d3.timeSecond, 10)` will extend the domain to an even ten seconds (0, 10, 20, <i>etc.</i>). See [*time*.ticks](#time_ticks) and [*interval*.every](https://github.com/d3/d3-time#interval_every) for further detail.

<a name="quantize_nice" href="#quantize_nice">#</a> <i>quantize</i>.<b>nice</b>()
Equivalent to [*linear*.nice](#linear_nice).
<a name="quantize_ticks" href="#quantize_ticks">#</a> <i>quantize</i>.<b>ticks</b>([<i>count</i>])

@@ -495,2 +595,6 @@

<a name="quantize_nice" href="#quantize_nice">#</a> <i>quantize</i>.<b>nice</b>()
Equivalent to [*linear*.nice](#linear_nice).
<a name="quantize_copy" href="#quantize_copy">#</a> <i>quantize</i>.<b>copy</b>()

@@ -628,3 +732,3 @@

Given a *value* in the input [domain](#band_domain), returns the start of the corresponding band derived from the output [range](#band_range). If the given *value* is not in the scale’s [domain](#ordinal_domain), returns undefined.
Given a *value* in the input [domain](#band_domain), returns the start of the corresponding band derived from the output [range](#band_range). If the given *value* is not in the scale’s domain, returns undefined.

@@ -657,7 +761,7 @@ <a name="band_domain" href="#band_domain">#</a> <i>band</i>.<b>domain</b>([<i>domain</i>])

If *padding* is specified, sets the inner padding to the specified value which must be in the range [0, 1]. If *padding* is not specified, returns the current inner padding which defaults to 0. The inner padding determines the ratio of the range that is reserved for blank space between bars.
If *padding* is specified, sets the inner padding to the specified value which must be in the range [0, 1]. If *padding* is not specified, returns the current inner padding which defaults to 0. The inner padding determines the ratio of the range that is reserved for blank space between bands.
<a name="band_paddingOuter" href="#band_paddingOuter">#</a> <i>band</i>.<b>paddingOuter</b>([<i>padding</i>])
If *padding* is specified, sets the outer padding to the specified value which must be in the range [0, 1]. If *padding* is not specified, returns the current outer padding which defaults to 0. The outer padding determines the ratio of the range that is reserved for blank space before the first bar and after the last bar.
If *padding* is specified, sets the outer padding to the specified value which must be in the range [0, 1]. If *padding* is not specified, returns the current outer padding which defaults to 0. The outer padding determines the ratio of the range that is reserved for blank space before the first band and after the last band.

@@ -670,3 +774,3 @@ <a name="band_padding" href="#band_padding">#</a> <i>band</i>.<b>padding</b>([<i>padding</i>])

If *align* is specified, sets the alignment to the specified value which must be in the range [0, 1]. If *align* is not specified, returns the current alignment which defaults to 0.5. The alignment determines how any leftover unused space in the range is distributed. A value of 0.5 indicates that the leftover space should be equally distributed before the first bar and after the last bar; *i.e.*, the bars should be centered within the range. A value of 0 or 1 may be used to shift the bars to one side, say to position them adjacent to an axis.
If *align* is specified, sets the alignment to the specified value which must be in the range [0, 1]. If *align* is not specified, returns the current alignment which defaults to 0.5. The alignment determines how any leftover unused space in the range is distributed. A value of 0.5 indicates that the leftover space should be equally distributed before the first band and after the last band; *i.e.*, the bands should be centered within the range. A value of 0 or 1 may be used to shift the bands to one side, say to position them adjacent to an axis.

@@ -693,8 +797,52 @@ <a name="band_bandwidth" href="#band_bandwidth">#</a> <i>band</i>.<b>bandwidth</b>()

Constructs a new point scale with the empty [domain](#band_domain), the unit [range](#band_range) [0, 1], no [padding](#point_padding), no [rounding](#band_round) and center [alignment](#band_align).
Constructs a new point scale with the empty [domain](#point_domain), the unit [range](#point_range) [0, 1], no [padding](#point_padding), no [rounding](#point_round) and center [alignment](#point_align).
<a name="_point" href="#_point">#</a> <i>point</i>(*value*)
Given a *value* in the input [domain](#point_domain), returns the corresponding point derived from the output [range](#point_range). If the given *value* is not in the scale’s domain, returns undefined.
<a name="point_domain" href="#point_domain">#</a> <i>point</i>.<b>domain</b>([<i>domain</i>])
If *domain* is specified, sets the domain to the specified array of values. The first element in *domain* will be mapped to the first point, the second domain value to the second point, and so on. Domain values are stored internally in a map from stringified value to index; the resulting index is then used to determine the point. Thus, a point scale’s values must be coercible to a string, and the stringified version of the domain value uniquely identifies the corresponding point. If *domain* is not specified, this method returns the current domain.
<a name="point_range" href="#point_range">#</a> <i>point</i>.<b>range</b>([<i>range</i>])
If *domain* is specified, sets the scale’s domain to the specified two-element array of numbers. If the elements in the given array are not numbers, they will be coerced to numbers. If *range* is not specified, returns the scale’s current range, which defaults to [0, 1].
<a name="point_rangeRound" href="#point_rangeRound">#</a> <i>point</i>.<b>rangeRound</b>([<i>range</i>])
Sets the scale’s [*range*](#point_range) to the specified two-element array of numbers while also enabling [rounding](#point_round). This is a convenience method equivalent to:
```js
point
.range(range)
.round(true);
```
Rounding is sometimes useful for avoiding antialiasing artifacts, though also consider the [shape-rendering](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering) “crispEdges” styles.
<a name="point_round" href="#point_round">#</a> <i>point</i>.<b>round</b>([<i>round</i>])
If *round* is specified, enables or disables rounding accordingly. If rounding is enabled, the position of each point will be integers. Rounding is sometimes useful for avoiding antialiasing artifacts, though also consider the [shape-rendering](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/shape-rendering) “crispEdges” styles. Note that if the width of the domain is not a multiple of the cardinality of the range, there may be leftover unused space, even without padding! Use [*point*.align](#point_align) to specify how the leftover space is distributed.
<a name="point_padding" href="#point_padding">#</a> <i>point</i>.<b>padding</b>([<i>padding</i>])
Equivalent to [*band*.paddingOuter](#band_paddingOuter).
If *padding* is specified, sets the outer padding to the specified value which must be in the range [0, 1]. If *padding* is not specified, returns the current outer padding which defaults to 0. The outer padding determines the ratio of the range that is reserved for blank space before the first point and after the last point. Equivalent to [*band*.paddingOuter](#band_paddingOuter).
<a name="point_align" href="#point_align">#</a> <i>point</i>.<b>align</b>([<i>align</i>])
If *align* is specified, sets the alignment to the specified value which must be in the range [0, 1]. If *align* is not specified, returns the current alignment which defaults to 0.5. The alignment determines how any leftover unused space in the range is distributed. A value of 0.5 indicates that the leftover space should be equally distributed before the first point and after the last point; *i.e.*, the points should be centered within the range. A value of 0 or 1 may be used to shift the points to one side, say to position them adjacent to an axis.
<a name="point_bandwidth" href="#point_bandwidth">#</a> <i>point</i>.<b>bandwidth</b>()
Returns zero.
<a name="point_step" href="#point_step">#</a> <i>point</i>.<b>step</b>()
Returns the distance between the starts of adjacent points.
<a name="point_copy" href="#point_copy">#</a> <i>point</i>.<b>copy</b>()
Returns an exact copy of this scale. Changes to this scale will not affect the returned scale, and vice versa.
### Categorical Color Scales

@@ -706,3 +854,3 @@

Constructs a new [ordinal scale](#ordinal) with a range of ten categorical colors.
Constructs a new [ordinal scale](#ordinal-scales) with a range of ten categorical colors.

@@ -713,3 +861,3 @@ <a name="scaleCategory20" href="#scaleCategory20">#</a> d3.<b>scaleCategory20</b>()

Constructs a new [ordinal scale](#ordinal) with a range of twenty categorical colors.
Constructs a new [ordinal scale](#ordinal-scales) with a range of twenty categorical colors.

@@ -720,3 +868,3 @@ <a name="scaleCategory20b" href="#scaleCategory20b">#</a> d3.<b>scaleCategory20b</b>()

Constructs a new [ordinal scale](#ordinal) with a range of twenty categorical colors.
Constructs a new [ordinal scale](#ordinal-scales) with a range of twenty categorical colors.

@@ -727,2 +875,2 @@ <a name="scaleCategory20c" href="#scaleCategory20c">#</a> d3.<b>scaleCategory20c</b>()

Constructs a new [ordinal scale](#ordinal) with a range of twenty categorical colors. This color scale includes color specifications and designs developed by Cynthia Brewer ([colorbrewer2.org](http://colorbrewer2.org/)).
Constructs a new [ordinal scale](#ordinal-scales) with a range of twenty categorical colors. This color scale includes color specifications and designs developed by Cynthia Brewer ([colorbrewer2.org](http://colorbrewer2.org/)).

@@ -66,9 +66,2 @@ import {ticks} from "d3-array";

scale.nice = function() {
return domain(nice(domain(), {
floor: function(x) { return pows(Math.floor(logs(x))); },
ceil: function(x) { return pows(Math.ceil(logs(x))); }
}));
};
scale.ticks = function(count) {

@@ -127,2 +120,9 @@ var d = domain(),

scale.nice = function() {
return domain(nice(domain(), {
floor: function(x) { return pows(Math.floor(logs(x))); },
ceil: function(x) { return pows(Math.ceil(logs(x))); }
}));
};
scale.copy = function() {

@@ -129,0 +129,0 @@ return copy(scale, log().base(base));

import {map} from "d3-collection";
import {slice} from "./array";
export var implicit = {};
export var implicit = {name: "implicit"};

@@ -6,0 +6,0 @@ export default function ordinal() {

@@ -7,28 +7,26 @@ import {tickStep} from "d3-array";

stop = domain[domain.length - 1],
step = tickStep(start, stop, count == null ? 10 : count);
if (specifier == null) {
specifier = ",." + precisionFixed(step) + "f";
} else {
switch (specifier = formatSpecifier(specifier), specifier.type) {
case "s": {
var value = Math.max(Math.abs(start), Math.abs(stop));
if (specifier.precision == null) specifier.precision = precisionPrefix(step, value);
return formatPrefix(specifier, value);
}
case "":
case "e":
case "g":
case "p":
case "r": {
if (specifier.precision == null) specifier.precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))) - (specifier.type === "e");
break;
}
case "f":
case "%": {
if (specifier.precision == null) specifier.precision = precisionFixed(step) - (specifier.type === "%") * 2;
break;
}
step = tickStep(start, stop, count == null ? 10 : count),
precision;
specifier = formatSpecifier(specifier == null ? ",f" : specifier);
switch (specifier.type) {
case "s": {
var value = Math.max(Math.abs(start), Math.abs(stop));
if (specifier.precision == null && !isNaN(precision = precisionPrefix(step, value))) specifier.precision = precision;
return formatPrefix(specifier, value);
}
case "":
case "e":
case "g":
case "p":
case "r": {
if (specifier.precision == null && !isNaN(precision = precisionRound(step, Math.max(Math.abs(start), Math.abs(stop))))) specifier.precision = precision - (specifier.type === "e");
break;
}
case "f":
case "%": {
if (specifier.precision == null && !isNaN(precision = precisionFixed(step))) specifier.precision = precision - (specifier.type === "%") * 2;
break;
}
}
return format(specifier);
};

@@ -99,9 +99,2 @@ import {bisector, tickStep} from "d3-array";

scale.nice = function(interval, step) {
var d = domain();
return (interval = tickInterval(interval, d[0], d[d.length - 1], step))
? domain(nice(d, interval))
: scale;
};
scale.ticks = function(interval, step) {

@@ -123,2 +116,9 @@ var d = domain(),

scale.nice = function(interval, step) {
var d = domain();
return (interval = tickInterval(interval, d[0], d[d.length - 1], step))
? domain(nice(d, interval))
: scale;
};
scale.copy = function() {

@@ -125,0 +125,0 @@ return copy(scale, calendar(year, month, week, day, hour, minute, second, millisecond, format));

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc