@datagrok/curves 1.2.4 → 1.2.6

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,30 @@
1
1
  # Curves changelog
2
2
 
3
- ## 1.2.5 (2023-08-12)
3
+ ## 1.2.6 (2023-08-25)
4
+
5
+ ### Features
6
+
7
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Added different line styles rendering
8
+ * [#2106](https://github.com/datagrok-ai/public/issues/2106): Added documnetation about line styles
9
+
10
+ ### Bug Fixes
11
+
12
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
13
+ * Fixed the curve fitting algorithm
14
+ * Fixed axes scales
15
+
16
+ ## 1.2.5 (2023-08-23)
17
+
18
+ ### Features
19
+
20
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
21
+ * Added standard deviation rendering for points
22
+ * Added custom point color coding
23
+ * Added custom point marker
24
+ * Added custom marker size rendering
25
+ * [#2106](https://github.com/datagrok-ai/public/issues/2106): Updated the documentation regarding the standard deviation, the point color, marker type and size
26
+
27
+ ## 1.2.4 (2023-08-12)
4
28
 
5
29
  ### Features
6
30
 
package/README.md CHANGED
@@ -13,7 +13,7 @@ including in-grid rendering, storing charts in cells, interactivity, and automat
13
13
  - Deep integration with the Datagrok grid
14
14
  - Either fitting on the fly or using the supplied function + parameters
15
15
  - Multiple series in one cell
16
- - Candlesticks, confidence intervals, and droplines drawing
16
+ - Candlesticks, confidence intervals, standard deviation and droplines drawing
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
@@ -34,6 +34,7 @@ To render a fitted curve based on series points, you need to write it in the fol
34
34
  "fitLineColor": "#2ca02c",
35
35
  "confidenceIntervalColor": "#fbec5d",
36
36
  "markerType": "circle",
37
+ "lineStyle": "dashed",
37
38
  "showFitLine": true,
38
39
  "showCurveConfidenceInterval": true,
39
40
  "fitFunction": "sigmoid",
@@ -48,9 +49,9 @@ To render a fitted curve based on series points, you need to write it in the fol
48
49
  "clickToToggle": true,
49
50
  "droplines": ["IC50"],
50
51
  "points": [
51
- { "x": 0.10000000149011612, "y": 0.04152340441942215 },
52
+ { "x": 0.10000000149011612, "y": 0.04152340441942215, "stdev": 0.031523404876, "marker": "square" },
52
53
  { "x": 0.6000000238418579, "y": 0.11901605129241943, "outlier": true },
53
- { "x": 1.100000023841858, "y": 0.11143334954977036, "outlier": false },
54
+ { "x": 1.100000023841858, "y": 0.11143334954977036, "outlier": false, "color": "#2ca02c", "size": 5 },
54
55
  // ...
55
56
  ]
56
57
  }
@@ -61,6 +62,7 @@ To render a fitted curve based on series points, you need to write it in the fol
61
62
  "minY": 0.04152340441942215,
62
63
  "maxX": 7.099999904632568,
63
64
  "maxY": 1.7591952085494995,
65
+ "title": "Dose-Response curves",
64
66
  "xAxisName": "Concentration",
65
67
  "yAxisName": "Activity",
66
68
  "logX": true,
@@ -76,6 +78,7 @@ Each series has its own parameters, such as:
76
78
  - `fitLineColor` - overrides the standardized series fit line color
77
79
  - `confidenceIntervalColor` - overrides the standardized series confidence interval color
78
80
  - `markerType` - defines the series marker type, which could be `circle`, `asterisk`, `square`, etc.
81
+ - `lineStyle` - defines the series line style, which could be `solid`, `dotted`, `dashed` or `dashdotted`
79
82
  - `showFitLine` - defines whether to show the fit line or not
80
83
  - `showCurveConfidenceInterval` - defines whether to show the confidence intervals or not
81
84
  - `fitFunction` - controls the series fit function, which could be either a sigmoid function or a
@@ -86,7 +89,12 @@ sigmoid function is: `max, tan, IC50, min`.
86
89
  - `showPoints` - defines the data display mode, which could be either `points`, `candlesticks`, `both`, or none
87
90
  - `clickToToggle` - defines whether clicking on the point toggles its outlier status and causes curve refitting or not
88
91
  - `droplines` - defines the droplines that would be shown on the plot (for instance, IC50)
89
- - `points` - an array of objects with each object containing x and y coordinates and a boolean outlier value
92
+ - `points` - an array of objects with each object containing `x` and `y` coordinates and its own parameters:
93
+ - `outlier` - if true, renders as 'x' and gets ignored for curve fitting
94
+ - `color` - overrides the marker color defined in series `pointColor`
95
+ - `marker` - overrides the marker type defined in series `markerType`
96
+ - `size` - overrides the default marker size
97
+ - `stdev` - when defined, renders an error bar candlestick
90
98
 
91
99
  Each chart has its own parameters as well, such as:
92
100
 
@@ -124,4 +132,4 @@ returns the result of the fit function. These functions are written as JavaScrip
124
132
  See also:
125
133
 
126
134
  - [Packages](../../help/develop/develop.md#packages)
127
- - [JavaScript API](../../help/develop/js-api.md)
135
+ - [JavaScript API](../../help/develop/packages/js-api.md)