Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mbostock
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
181.
▲
by
mbostock
11y ago
Yes, using Rollup you can make a smaller build. (See other comment where I linked to an example.) d3-axis depends on d3-selection and d3-transition, so it’ll be one of the last modules to be released, I expect. That said most of the functio
182.
▲
by
mbostock
11y ago
For conferences, IEEE InfoVis. For a book, try Tamara Munzner’s Visualization Analysis and Design. https://www.cs.ubc.ca/~tmm/vadbook/
183.
▲
by
mbostock
11y ago
Ordinal scales don’t have a continuous input domain, so you can’t plug them into the zoom behavior like a linear scale. You could have the zoom behavior transform the scale’s output range instead (or equivalently, use the zoom behavior to a
184.
▲
by
mbostock
11y ago
The speed comes from doing less. :) Selections are designed so that you only modify the parts of the DOM that need to be updated, and don’t waste effort touching parts that are unchanged. The downside is that it can be more work for you, si
185.
▲
by
mbostock
11y ago
This is not a new ambition; it has been my goal since starting Protovis in 2009. It’s working out okay so far, but I totally agree that things can go off the rails if you spend too much time thinking about abstraction and not about practica
186.
▲
by
mbostock
11y ago
1. There’s room for improvement here. There’s some useful stuff in d3-array ( https://github.com/d3/d3-array ), particularly the nest and histogram operators. There’s also science.js ( https://github.com/j
187.
▲
by
mbostock
11y ago
Including dependencies and localization, d3-scale is 69KB minified and 24KB gzipped. You can make it smaller by excluding optional dependencies if they are not needed, such as d3-time and d3-time-format; you can make it even smaller by crea
188.
▲
by
mbostock
11y ago
This won’t help you do it on a computer, but you might find Stefanie Posavec’s work inspiring: http://www.stefanieposavec.co.uk/personal/#/the-longest-sent...
189.
▲
by
mbostock
11y ago
I’m not sure; it would depend on what you want to “ask” your data / what you want to learn from the visualization. I would look for existing visualizations with similar applications for inspiration, and I would try a bunch of forms (wi
190.
▲
by
mbostock
11y ago
Yes. I wrote a little bit more about that here: https://medium.com/@mbostock/let-s-make-a-d3-plugin-c8e69759...
191.
▲
by
mbostock
11y ago
Two major differences. First, it represents the 4.0 API, so it’s a preview of what “vanilla D3” will look like sometime next year when D3 4.0 is released. Second, it’s a library you can use independently of the rest of D3. So if you don’t n
192.
▲
by
mbostock
11y ago
Most attempts to create cross-platform abstractions have been a failure because they (necessarily) oversimplify, and you are left with a common-denominator approach that lacks in expressiveness, performance, or both. It’s better to use the
193.
▲
by
mbostock
11y ago
I haven’t used React enough to form a strong opinion on right vs. wrong, but one of my objectives in decoupling D3 (see the new modules at https://github.com/d3 ) is to make it easier for people to use just the parts of D3 t
194.
▲
by
mbostock
11y ago
It’s expensive (in terms of effort) to design for multiple screens, but often necessary. Responsive design isn’t something that can be transparently solved by technology because it’s a design problem to decide what you want to show on diffe
195.
▲
by
mbostock
11y ago
Author here, AMA.
196.
▲
Roads to Rome
(roadstorome.moovellab.com)
32 points
by
mbostock
11y ago
|
9 comments
197.
▲
by
mbostock
11y ago
Would you mind filing a bug with more information? https://github.com/d3/d3-shape/issues
198.
▲
by
mbostock
11y ago
Yep! This linear-time algorithm described by Buchheim et al. is used by d3.layout.tree: https://github.com/d3/d3-hierarchy/blob/master/src/tree.js
199.
▲
An Oral History of Facebook
(clickhole.com)
2 points
by
mbostock
11y ago
|
0 comments
200.
▲
by
mbostock
11y ago
You can also watch it at 2x on YouTube: https://www.youtube.com/watch?v=vYA0f6R5KAI
201.
▲
by
mbostock
11y ago
D3.
202.
▲
by
mbostock
12y ago
Aren’t these textures already reusable? The constructed texture object (the result of textures.lines(), e.g.) can be called on as many selections as you like to reuse it. I feel it’s a matter of taste, but one practical reason I prefer chai
203.
▲
Line drawing on a grid
(redblobgames.com)
127 points
by
mbostock
12y ago
|
21 comments
204.
▲
by
mbostock
12y ago
Agreed. It’s more of a what-if machine than an attempt to make the most accurate prediction. Incorporating Elo ratings into the simulator is actually easy: the difference between the two ratings tells you the probability of one team winning
205.
▲
by
mbostock
12y ago
It’s just an arbitrary number that’s hopefully large enough that everyone sees approximately the same result. It would be nice to calculate the exact variance of our estimate, though. (An earlier version continued simulating indefinitely bu
206.
▲
by
mbostock
12y ago
Thanks, and yes, this was a collaboration with Kevin Quealy and Shan Carter. The development process was incremental: first create a simple representation of the league (conferences, divisions, teams) and schedule (games, outcomes), then im
207.
▲
by
mbostock
12y ago
Thanks for posting this. The most enjoyable part of this project for me was implementing the NFL’s incredibly elaborate tie-breaking procedures in code: taking a plain English description of the rules (that requires some interpretation) and
208.
▲
by
mbostock
12y ago
Here’s my introductory tutorial for creating a map with D3 & TopoJSON using geometry from Natural Earth: http://bost.ocks.org/mike/map/ And here’s a subsequent tutorial for visualizing geographic data: http:&
209.
▲
by
mbostock
12y ago
Toggles aren’t a great solution; it’s a pain for you since you need to opt-in, and it’s a pain for the designer since they now have to create two different versions of the site. I think either we figure out how to use scrolling effectively
210.
▲
by
mbostock
12y ago
If you follow rule 2 and adapt content to the viewport (rather than listening to wheel events directly), then middle-click scrolling should continue to work fine.
More ›