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

[Bug]: Issue: bestFit Modifier Not Working as Documented #130

Open
Sankeyuk opened this issue Nov 26, 2024 · 0 comments
Open

[Bug]: Issue: bestFit Modifier Not Working as Documented #130

Sankeyuk opened this issue Nov 26, 2024 · 0 comments

Comments

@Sankeyuk
Copy link

Describe the bug

Description: The bestFit modifier described in the documentation does not appear to function as expected. When applied to a line chart with the provided example code, it only adds a legend entry (e.g., "Best Fit Title!") but does not render a line of best fit on the chart.

Steps to Reproduce:
Use the example code provided in the documentation:

type: line
labels: [Monday,Tuesday,Wednesday,Thursday,Friday]
series:
    - title: Title 1
      data: [1,2,3,4,5]
    - title: Title 2
      data: [5,4,3,2,1]
    - title: Title 3
      data: [8,2,5,-1,4]
bestFit: true
bestFitTitle: "Best Fit Title!"
bestFitNumber: 1

Render the chart.

Observe that while the "Best Fit Title!" legend entry is displayed, no best fit line is rendered for the specified data series (Title 2).

Observed Behavior:
Only a legend entry for the best fit line is displayed.
No best fit line is rendered on the chart.
Environment:
Chart Plugin Version:3.9.0
OS: MacBook Air M3 masOS 15.1 (24B83)
Additional Notes:
This issue persists even with simplified data sets.
It seems the functionality for generating and displaying the best fit line may not be implemented or is failing silently.
Request:
Please verify whether the bestFit functionality is fully implemented. If not, consider updating the documentation to clarify its current limitations or implementing the feature as described.

image
image

Relevant errors (if available)

No response

Steps to reproduce

Expected Behavior:
A best fit line should be rendered for the specified series (bestFitNumber: 1) that visually represents the trend of the data points for that series.

Expected Behavior

No response

Additional context

No response

Code

No response

Operating system

macOS

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

No branches or pull requests

1 participant