Mike Bostock

Results 751 comments of Mike Bostock

This might require using a different trick to make the step curve symmetric: ``` js var t = x > this._x ? this._t : 1 - this._t; ``` Perhaps something...

I’ve simplified the step curve in e3b1b0ae89259c971cd24a279950c838c439c725, but there’s another issue that makes this difficult to implement: if the curve processes partially-defined points, it must use _context_.moveTo to render a...

I think you could _maybe_ implement this by first detecting whether _x_ or _y_ was NaN inside the area and line shapes, and treating that as similar to the defined...

Also, we need to decide the appropriate directive. I think `%o` might be a good choice: “o” for “ordinal”, and lowercase like `%d` and `%e`. I believe we only need...

I was missing some parens. Added.

> First, does d3 conform to ISO 8601 or the XSD variant for BCE dates? It shows whatever [*date*.getFullYear](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear) returns, modulo 10,000; see [formatFullYear](https://github.com/d3/d3-time-format/blob/v2.0.5/src/locale.js#L460-L462). Regarding the leading zeroes, as the...

@curran Valid dates range from -100,000,000 days to +100,000,000 days relative to January 1, 1970 UTC. That’s approximately ±273,785 years, so yes. Edit: although, it depends on what you mean...

Hmm. Are you sure the absolute value of the full year is correct? I thought that 1 CE follows 1 BCE, and that there is no 0 CE (or 0...

Localized formatting of dates in standard JavaScript has improved significantly since this library was first created. For example: ```js const date = new Date(-50, 0, 1); date.toLocaleString(undefined, {year: "numeric", era:...

Implementation in #11.