plottable icon indicating copy to clipboard operation
plottable copied to clipboard

Plot.Line d3 interpolation not accessible?

Open narvoxx opened this issue 11 years ago • 1 comments

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.

narvoxx avatar Mar 27 '15 11:03 narvoxx

Closing as duplicate of #757.

jtlan avatar Apr 07 '15 18:04 jtlan