Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Enable the line curve in the line annotation #754

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 40 commits into from
Jan 27, 2023
Merged

Enable the line curve in the line annotation #754

merged 40 commits into from
Jan 27, 2023

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 kurkle and LeeLenaleee 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