Skip to content

Conversation

@stockiNail
Copy link
Collaborator

@stockiNail stockiNail commented May 30, 2022

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

  • review control point calculation
  • test cases
  • types
  • documentation
  • sample

@stockiNail stockiNail marked this pull request as ready for review May 31, 2022 14:41
@stockiNail stockiNail requested review from LeeLenaleee and kurkle May 31, 2022 14:41
@stockiNail stockiNail modified the milestones: 2.0.0, 2.1.0 May 31, 2022
@stockiNail stockiNail marked this pull request as draft July 21, 2022 15:46
@stockiNail stockiNail marked this pull request as ready for review August 5, 2022 10:43
Copy link
Member

@kurkle kurkle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

couple of nits, I think this will be a very nice addition!

@stockiNail stockiNail requested a review from kurkle October 27, 2022 11:21
@stockiNail stockiNail modified the milestones: 2.1.0, 2.2.0 Nov 17, 2022
kurkle
kurkle previously approved these changes Jan 26, 2023
@kurkle
Copy link
Member

kurkle commented Jan 26, 2023

@stockiNail I'm not merging these, so you can decide the order you want to go.

@stockiNail stockiNail merged commit 75cc48c into chartjs:master Jan 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants