Skip to content
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

Tension(curve) for two data points #1224

Open
1 task
vignesh-4554 opened this issue Aug 27, 2024 · 1 comment
Open
1 task

Tension(curve) for two data points #1224

vignesh-4554 opened this issue Aug 27, 2024 · 1 comment

Comments

@vignesh-4554
Copy link

Would you like to work on this feature?

  • Check this if you would like to implement a PR, we are more than happy to help you go through the process.

What problem are you trying to solve?

Currently, the Line component in the react-chartjs-2 package requires a minimum of three data points to render a smooth curve using the tension property. This limitation poses a problem for cases where you only have two data points but still wish to display a curved line between them. Without the ability to use the tension property with just two data points, the line appears as a straight line, which can be less visually informative or aesthetically pleasing.

Actual Screenshot:
image

Expected Screenshot:
curve

Describe the solution you'd like

I would like to request an enhancement to the Line component in the react-chartjs-2 package to allow the use of the tension property with a minimum of two data points.

Describe alternatives you've considered

No response

Documentation, Adoption, Migration Strategy

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants
@vignesh-4554 and others