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:
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:
Here is the same data as shown in Graphite:
I would like to smooth the Cubism view to look more like Graphite (with the added awesomeness of the horizon overplotting)
Cubism doesn't do this automatically, but d3 has an interpolator you can use to fill in the in-between values. Here is an example from Mike Bostock using a custom line interpolator; you're probably fine with the default one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With