Skip to content

Commit

Permalink
Update tickFormat.js
Browse files Browse the repository at this point in the history
Update utcTime.js

Update time.js

Update nice.js

Update number.js

Update constant.js

Update colors.js
  • Loading branch information
michielmetcake authored and mbostock committed Sep 23, 2020
1 parent 42d546e commit 957482b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/colors.js
@@ -1,4 +1,4 @@
export default function(s) {
export default function colors(s) {
return s.match(/.{6}/g).map(function(x) {
return "#" + x;
});
Expand Down
2 changes: 1 addition & 1 deletion src/constant.js
@@ -1,4 +1,4 @@
export default function(x) {
export default function constants(x) {
return function() {
return x;
};
Expand Down
2 changes: 1 addition & 1 deletion src/nice.js
@@ -1,4 +1,4 @@
export default function(domain, interval) {
export default function nice(domain, interval) {
domain = domain.slice();

var i0 = 0,
Expand Down
2 changes: 1 addition & 1 deletion src/number.js
@@ -1,3 +1,3 @@
export default function(x) {
export default function number(x) {
return +x;
}
2 changes: 1 addition & 1 deletion src/tickFormat.js
@@ -1,7 +1,7 @@
import {tickStep} from "d3-array";
import {format, formatPrefix, formatSpecifier, precisionFixed, precisionPrefix, precisionRound} from "d3-format";

export default function(start, stop, count, specifier) {
export default function tickFormat(start, stop, count, specifier) {
var step = tickStep(start, stop, count),
precision;
specifier = formatSpecifier(specifier == null ? ",f" : specifier);
Expand Down
2 changes: 1 addition & 1 deletion src/time.js
Expand Up @@ -131,6 +131,6 @@ export function calendar(year, month, week, day, hour, minute, second, milliseco
return scale;
}

export default function() {
export default function time() {
return initRange.apply(calendar(timeYear, timeMonth, timeWeek, timeDay, timeHour, timeMinute, timeSecond, timeMillisecond, timeFormat).domain([new Date(2000, 0, 1), new Date(2000, 0, 2)]), arguments);
}
2 changes: 1 addition & 1 deletion src/utcTime.js
Expand Up @@ -3,6 +3,6 @@ import {utcFormat} from "d3-time-format";
import {utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond} from "d3-time";
import {initRange} from "./init.js";

export default function() {
export default function utcTime() {
return initRange.apply(calendar(utcYear, utcMonth, utcWeek, utcDay, utcHour, utcMinute, utcSecond, utcMillisecond, utcFormat).domain([Date.UTC(2000, 0, 1), Date.UTC(2000, 0, 2)]), arguments);
}

0 comments on commit 957482b

Please sign in to comment.