Interpolation on Cubism graphs

Posted by Abe Stanway on Stack Overflow See other posts from Stack Overflow or by Abe Stanway
Published on 2012-12-05T20:58:04Z Indexed on 2012/12/05 23:04 UTC
Read the original article Hit count: 165

Cubism was designed, by mbostock's own words, for maximum information density - which means it generally wants to display one datapoint per pixel. While this is useful in many cases, it doesn't help when your data itself is not that dense. In these cases, you get ugly, staccato-style graphs like so:

enter image description here

Is there a way to interpolate my data/graph within Cubism to show a nice, smoothed graph?

EDIT:

After adding keepLastValue to the metric, I get this:

enter image description here

Here is the same data as shown in Graphite: enter image description here

I would like to smooth the Cubism view to look more like Graphite (with the added awesomeness of the horizon overplotting)

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about d3.js