@datagrok/curves 1.2.6 → 1.2.8

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 (37) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/README.md +3 -0
  3. package/dist/package-test.js +1 -17349
  4. package/dist/package-test.js.map +1 -1
  5. package/dist/package.js +1 -16586
  6. package/dist/package.js.map +1 -1
  7. package/files/curves-demo.csv +31 -0
  8. package/package.json +4 -4
  9. package/src/fit/cell-render-viewer.ts +8 -0
  10. package/src/fit/fit-demo.ts +13 -11
  11. package/src/fit/fit-grid-cell-handler.ts +174 -8
  12. package/src/fit/fit-renderer.ts +92 -49
  13. package/src/tests/transform-tests.ts +2 -2
  14. package/src/fit/cell-render-viewer.js +0 -33
  15. package/src/fit/cell-render-viewer.js.map +0 -1
  16. package/src/fit/fit-demo.js +0 -99
  17. package/src/fit/fit-demo.js.map +0 -1
  18. package/src/fit/fit-grid-cell-handler.js +0 -63
  19. package/src/fit/fit-grid-cell-handler.js.map +0 -1
  20. package/src/fit/fit-parser.js +0 -119
  21. package/src/fit/fit-parser.js.map +0 -1
  22. package/src/fit/fit-renderer.js +0 -459
  23. package/src/fit/fit-renderer.js.map +0 -1
  24. package/src/fit/multi-curve-viewer.js +0 -68
  25. package/src/fit/multi-curve-viewer.js.map +0 -1
  26. package/src/package-test.js +0 -29
  27. package/src/package-test.js.map +0 -1
  28. package/src/package.js +0 -45
  29. package/src/package.js.map +0 -1
  30. package/src/tests/curves-cell-renderer-tests.js +0 -103
  31. package/src/tests/curves-cell-renderer-tests.js.map +0 -1
  32. package/src/tests/detector-tests.js +0 -39
  33. package/src/tests/detector-tests.js.map +0 -1
  34. package/src/tests/fit-tests.js +0 -82
  35. package/src/tests/fit-tests.js.map +0 -1
  36. package/src/tests/transform-tests.js +0 -26
  37. package/src/tests/transform-tests.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,44 @@
1
1
  # Curves changelog
2
2
 
3
+ ## 1.2.8 (2023-09-25)
4
+
5
+ ### Features
6
+
7
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved the curves demo app
8
+
9
+ ### Bug Fixes
10
+
11
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
12
+ * Don't allow clickToToggle if small cell size
13
+ * Fixed margins in small cells
14
+
15
+ ## 1.2.7 (2023-09-11)
16
+
17
+ ### Features
18
+
19
+ * [#2103](https://github.com/datagrok-ai/public/issues/2103): Property panel changes:
20
+ * Added color for the series in the property panel
21
+ * Added capability to store chart options on the dataframe level in tags
22
+ * Restructured the property panel
23
+ * Added dataframe and plot-only switch modes in the property panel
24
+ * Made the accordion to restore the property panel state
25
+ * Added proper tooltips on properties
26
+ * Implemented the capability to switch the plot state on the property panel
27
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
28
+ * Decreased the sizes for the plot title rendering
29
+ * Changed the min axes cell width
30
+ * Added errorModel property
31
+ * [#2100](https://github.com/datagrok-ai/public/issues/2100): Made cell renderer edit mode a resizeable window
32
+ * [#2106](https://github.com/datagrok-ai/public/issues/2106): Added documentation about property panel and error model
33
+
34
+ ### Bug Fixes
35
+
36
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
37
+ * Added dataBounds checks in case of logarithmic values
38
+ * Fixed droplines rendering for linear and logarithmic modes
39
+ * Fixed the tooltip for small cells
40
+ * Fixed confidence intervals rendering for logarithmic modes
41
+
3
42
  ## 1.2.6 (2023-08-25)
4
43
 
5
44
  ### Features
package/README.md CHANGED
@@ -17,6 +17,7 @@ including in-grid rendering, storing charts in cells, interactivity, and automat
17
17
  - Ability to define chart, marker, or fitting options (such as fit function or marker color)
18
18
  on the column level, with the ability to override it on a grid cell or point level
19
19
  - Clicking a point in a chart within a grid makes it an outlier -> curve is re-fitted on the fly
20
+ - Ability to switch curves parameters from the property panel on different levels (dataframe, column, cell)
20
21
  - Ability to specify a chart as a "reference" so that it is shown on every other chart for comparison
21
22
  - Ability to overlay curves from multiple grid cells (special viewer)
22
23
  - Work with series stored in multiple formats (binary for performance, JSON for flexibility, etc.)
@@ -35,6 +36,7 @@ To render a fitted curve based on series points, you need to write it in the fol
35
36
  "confidenceIntervalColor": "#fbec5d",
36
37
  "markerType": "circle",
37
38
  "lineStyle": "dashed",
39
+ "errorModel": "proportional",
38
40
  "showFitLine": true,
39
41
  "showCurveConfidenceInterval": true,
40
42
  "fitFunction": "sigmoid",
@@ -79,6 +81,7 @@ Each series has its own parameters, such as:
79
81
  - `confidenceIntervalColor` - overrides the standardized series confidence interval color
80
82
  - `markerType` - defines the series marker type, which could be `circle`, `asterisk`, `square`, etc.
81
83
  - `lineStyle` - defines the series line style, which could be `solid`, `dotted`, `dashed` or `dashdotted`
84
+ - `errorModel` - defines the series error model, which could be either `constant` or `proportional`
82
85
  - `showFitLine` - defines whether to show the fit line or not
83
86
  - `showCurveConfidenceInterval` - defines whether to show the confidence intervals or not
84
87
  - `fitFunction` - controls the series fit function, which could be either a sigmoid function or a