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

Plot issue in graph on click event #11855

Open
wavyTarundev opened this issue Aug 7, 2024 · 1 comment
Open

Plot issue in graph on click event #11855

wavyTarundev opened this issue Aug 7, 2024 · 1 comment

Comments

@wavyTarundev
Copy link

Expected behavior

Wherever I send values ​​in Datasets, on onclick event, through any Boot Boots, the graph should be plotted there in the Datasets in both x axis and y axis accordingly.
image

Current behavior

Whenever I try to plot a graph value at my desired point on a click event, it gets plotted on the y-axis only but not on the x-axis.
datasets: [{
label: 'Patient Responses',
data: [{x: 500, y: 20}, {x: 250, y: 40}, {x: 1000, y: 10}] ,
backgroundColor: backgroundColor,
borderColor: borderColor,
borderWidth: 2,
pointRadius: 10,
pointHoverRadius: 8,
borderDash: [],
fill: false,
}]

Reproducible sample

My script CDN is also updated

Optional extra steps/info to reproduce

No response

Possible solution

No response

Context

No response

chart.js version

4.4.3

Browser name and version

Chrome and 127.0.6533.89 (Official Build) (64-bit)

Link to your project

Local on server of project

@LeeLenaleee
Copy link
Collaborator

Please add a reproducible sample, as required by the issue template

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