chartjs-plugin-annotation icon indicating copy to clipboard operation
chartjs-plugin-annotation copied to clipboard

Enable the line curve in the line annotation

Open stockiNail opened this issue 3 years ago • 0 comments

This PR is enabling the line curve representation by the line annotation.

curvesample

Option Type Default Description
curve boolean false if true, the line will be drawn as a curve
controlPoint string - number- {x: string - number, y: string - number} {y:'-50%'} Distance (in px or percentage of the distance between the start and end point) from the center

It uses quadratic curve and Path2D.

TODO

  • [x] review control point calculation
  • [x] test cases
  • [x] types
  • [x] documentation
  • [x] sample

stockiNail avatar May 30 '22 10:05 stockiNail