We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there anyway to get the dataset for the trendline? Including X,Y of the data within the dataset.
The text was updated successfully, but these errors were encountered:
Can you give me a example config to try with?
Sorry, something went wrong.
Here is my dataset, chart config I did was just default.
datasets: [ { label: '', pointRadius: 0, pointHoverRadius: 4, borderColor: '3', borderColor: '#FF7A48', data: [0, 0, 0, -72.47, 362.37, 0, 0, 37.27, 450, -2000, -2000, -2000], tension: 0.5, pointHoverBackgroundColor: '#FF7A48', fill: false, trendlineLinear: { colorMin: "#D1D1D1", colorMax: "#D1D1D1", lineStyle: "dashed", width: 3, projection: true, }, } ]
I also created a custom plugin for afterDatasetsDraw to try to read the dataset of the trendline created, but couldn't find it.
afterDatasetsDraw
const customLabelPlugin = { id: 'customLabelPlugin', afterDatasetsDraw: function (chart) { // omitted } } }; Chart.register(customLabelPlugin);
I just need to get the x,y coordinates of the last data in the dataset.
No branches or pull requests
Is there anyway to get the dataset for the trendline? Including X,Y of the data within the dataset.
The text was updated successfully, but these errors were encountered: