plottable
plottable copied to clipboard
Plot.Line d3 interpolation not accessible?
I've been trying to get d3's interpolate to work on the line in a Plot.Line plot, but have been unsuccessful so far.
I'm talking about this "Smoothing out the lines in d3.js" functionality that is in d3.
new Plottable.Plot.Line(someXScale, someYScale)
.addDataset(someData)
.project("x", someXAccessorFunction, someXScale)
.project("y", someYAccessorFunction, someYScale)
.project("stroke", "#FF0000")
.interpolate("monotone")); //<--- this would be an ideal usecase
I have been trying to modify Plottablejs to try and get the above to work but with no success. Would be amazing if this could be added or if someone could point out how this is already possible.
Closing as duplicate of #757.