Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Plot issue in graph on click event

Open wavyTarundev opened this issue 1 year ago • 1 comments

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

wavyTarundev avatar Aug 07 '24 06:08 wavyTarundev

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

LeeLenaleee avatar Aug 08 '24 17:08 LeeLenaleee

Closing as per my above comment, if you have a reproducible sample we can take a look at it

LeeLenaleee avatar Aug 26 '24 13:08 LeeLenaleee