tessera-metrics / tessera

A dashboard front-end for graphite.
http://tessera-metrics.github.io/tessera/
Apache License 2.0
1.19k stars 81 forks source link

Switch to d3's break-out modules #537

Closed aalpern closed 5 years ago

aalpern commented 7 years ago

Copying issues from https://github.com/aalpern/tessera => https://github.com/aalpern/tessera/issues/3

As part of the road to d3 4.0, parts of d3 are being broken out into small modules (see https://github.com/mbostock/d3/issues/2461), like time, format, and scale. Tessera incorporates all of d3, but only uses it for a few things (time, format, and scale, mostly :).

Minimize the footprint a bit more by switching from the full d3 distribution to the individual modules.

https://www.npmjs.com/package/d3-format https://www.npmjs.com/package/d3-time https://www.npmjs.com/package/d3-scale https://www.npmjs.com/package/d3-color


Slightly complicated by flot-d3-stack, which relies on d3 proper - the stream layout isn't available as a separate module (yet). Looks like the stack layout is going in d3-shape, but isn't done yet.

aalpern commented 5 years ago

Switching to D3 4.0+ also required updating the stacking plugin for Flot, which provides streamgraphs using D3. That's just been completed -- https://www.npmjs.com/package/flot-d3-stack/v/2.0.0

aalpern commented 5 years ago

Done