score:1

Accepted answer

This is a very vague question, but definitely yes, this is an appropriate use case for D3.

You'll have a dataset (an array) of objects representing points and handles.

The points will represent your domain mapping to the range (dimensions) of your actual chart container (DOM element). This will produce a linear graph from point to point.

The handles will affect the interpolation between the points. You might want to use a custom interpolation function to generate lines produced by dragging handles around. Here's an example of a simple custom interpolator.

To generate the curves in your interpolators you might want to look at SVG curve commands documentation.


Related Query

More Query from same tag