chartjs-plugin-trendline 3.1.1 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (44) hide show
  1. package/.github/copilot-instructions.md +40 -40
  2. package/.github/workflows/release.yml +61 -61
  3. package/.github/workflows/tests.yml +26 -26
  4. package/.prettierrc +5 -5
  5. package/CLAUDE.md +44 -44
  6. package/GEMINI.md +40 -40
  7. package/LICENSE +21 -21
  8. package/MIGRATION.md +126 -0
  9. package/README.md +166 -149
  10. package/babel.config.js +3 -3
  11. package/changelog.md +39 -39
  12. package/dist/chartjs-plugin-trendline.cjs +885 -0
  13. package/dist/chartjs-plugin-trendline.esm.js +883 -0
  14. package/dist/chartjs-plugin-trendline.js +891 -0
  15. package/dist/chartjs-plugin-trendline.min.js +8 -1
  16. package/dist/chartjs-plugin-trendline.min.js.map +1 -0
  17. package/example/barChart.html +165 -165
  18. package/example/barChartWithNullValues.html +168 -168
  19. package/example/barChart_label.html +174 -174
  20. package/example/exponentialChart.html +244 -244
  21. package/example/lineChart.html +210 -210
  22. package/example/lineChartProjection.html +261 -261
  23. package/example/lineChartTypeTime.html +190 -190
  24. package/example/scatterChart.html +136 -136
  25. package/example/scatterProjection.html +141 -141
  26. package/example/test-null-handling.html +59 -59
  27. package/index.html +215 -215
  28. package/jest.config.js +4 -4
  29. package/package.json +40 -30
  30. package/rollup.config.js +54 -0
  31. package/src/components/label.js +56 -56
  32. package/src/components/label.test.js +129 -129
  33. package/src/components/trendline.js +375 -375
  34. package/src/components/trendline.test.js +789 -789
  35. package/src/core/plugin.js +79 -79
  36. package/src/index.js +12 -12
  37. package/src/utils/drawing.js +125 -125
  38. package/src/utils/drawing.test.js +308 -308
  39. package/src/utils/exponentialFitter.js +146 -146
  40. package/src/utils/exponentialFitter.test.js +362 -362
  41. package/src/utils/lineFitter.js +86 -86
  42. package/src/utils/lineFitter.test.js +340 -340
  43. package/dist/chartjs-plugin-trendline.min.js.LICENSE.txt +0 -11
  44. package/webpack.config.js +0 -9
@@ -1,11 +0,0 @@
1
- /*!
2
- * chartjs-plugin-trendline.js
3
- * Version: 3.0.0
4
- *
5
- * Copyright 2025 Marcus Alsterfjord
6
- * Released under the MIT license
7
- * https://github.com/Makanz/chartjs-plugin-trendline/blob/master/README.md
8
- *
9
- * Modified by @vesal: accept xy-data from scatter,
10
- * Modified by @Megaemce: add label and basic legend to trendline, add JSDoc,
11
- */
package/webpack.config.js DELETED
@@ -1,9 +0,0 @@
1
- const path = require('path');
2
-
3
- module.exports = {
4
- entry: './src/index.js',
5
- output: {
6
- filename: 'chartjs-plugin-trendline.min.js',
7
- path: path.resolve(__dirname, 'dist'),
8
- },
9
- };