@datagrok/curves 1.2.3 → 1.2.5

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,5 +1,32 @@
1
1
  # Curves changelog
2
2
 
3
+ ## 1.2.5 (2023-08-23)
4
+
5
+ ### Features
6
+
7
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
8
+ * Added standard deviation rendering for points
9
+ * Added custom point color coding
10
+ * Added custom point marker
11
+ * Added custom marker size rendering
12
+ * [#2106](https://github.com/datagrok-ai/public/issues/2106): Updated the documentation regarding the standard deviation, the point color, the point marker type and size
13
+
14
+ ## 1.2.4 (2023-08-12)
15
+
16
+ ### Features
17
+
18
+ * [#2106](https://github.com/datagrok-ai/public/issues/2106): Updated the documentation about parameter order and plot title
19
+ * [#2105](https://github.com/datagrok-ai/public/issues/2105): Made Curves by default as a DG categorical color
20
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
21
+ * Added x- and y-axes labels rendering
22
+ * Added title rendering if the cell size is enough
23
+
24
+ ### Bug Fixes
25
+
26
+ * [#2101](https://github.com/datagrok-ai/public/issues/2101): Improved curves properties and rendering:
27
+ * Fixed log curves rendering
28
+ * Fixed sizes for axes rendering
29
+
3
30
  ## 1.2.3 (2023-08-07)
4
31
 
5
32
  ### Bug Fixes
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
@@ -48,9 +48,9 @@ To render a fitted curve based on series points, you need to write it in the fol
48
48
  "clickToToggle": true,
49
49
  "droplines": ["IC50"],
50
50
  "points": [
51
- { "x": 0.10000000149011612, "y": 0.04152340441942215 },
51
+ { "x": 0.10000000149011612, "y": 0.04152340441942215, "stdev": 0.031523404876, "marker": "square" },
52
52
  { "x": 0.6000000238418579, "y": 0.11901605129241943, "outlier": true },
53
- { "x": 1.100000023841858, "y": 0.11143334954977036, "outlier": false },
53
+ { "x": 1.100000023841858, "y": 0.11143334954977036, "outlier": false, "color": "#2ca02c", "size": 5 },
54
54
  // ...
55
55
  ]
56
56
  }
@@ -61,6 +61,7 @@ To render a fitted curve based on series points, you need to write it in the fol
61
61
  "minY": 0.04152340441942215,
62
62
  "maxX": 7.099999904632568,
63
63
  "maxY": 1.7591952085494995,
64
+ "title": "Dose-Response curves",
64
65
  "xAxisName": "Concentration",
65
66
  "yAxisName": "Activity",
66
67
  "logX": true,
@@ -80,16 +81,23 @@ Each series has its own parameters, such as:
80
81
  - `showCurveConfidenceInterval` - defines whether to show the confidence intervals or not
81
82
  - `fitFunction` - controls the series fit function, which could be either a sigmoid function or a
82
83
  [custom-defined function](/README.md#creating-custom-fit-function).
83
- - `parameters` - controls the series parameters, if set explicitly - the fitting process won't be executed
84
+ - `parameters` - controls the series parameters, if set explicitly - the fitting process won't be executed. The parameter order of the
85
+ sigmoid function is: `max, tan, IC50, min`.
84
86
  - `parameterBounds` - defines the acceptable range of each parameter, which is taken into account during the fitting. See also `parameters`
85
87
  - `showPoints` - defines the data display mode, which could be either `points`, `candlesticks`, `both`, or none
86
88
  - `clickToToggle` - defines whether clicking on the point toggles its outlier status and causes curve refitting or not
87
89
  - `droplines` - defines the droplines that would be shown on the plot (for instance, IC50)
88
- - `points` - an array of objects with each object containing x and y coordinates and a boolean outlier value
90
+ - `points` - an array of objects with each object containing `x` and `y` coordinates and its own parameters:
91
+ - `outlier` - if true, renders as 'x' and gets ignored for curve fitting
92
+ - `color` - overrides the marker color defined in series `pointColor`
93
+ - `marker` - overrides the marker type defined in series `markerType`
94
+ - `size` - overrides the default marker size
95
+ - `stdev` - when defined, renders an error bar candlestick
89
96
 
90
97
  Each chart has its own parameters as well, such as:
91
98
 
92
99
  - `minX`, `minY`, `maxX`, `maxY` - controls the minimum x and y values of the plot
100
+ - `title` - defines the plot title. If the plot size is enough, will render it
93
101
  - `xAxisName`, `yAxisName` - defines the x and y axis names. If the plot size is enough, will render it
94
102
  - `logX`, `logY` - defines whether the x and y data should be logarithmic or not
95
103
  - `showStatistics` - defines the statistics that would be shown on the plot (such as the area under the curve
@@ -122,4 +130,4 @@ returns the result of the fit function. These functions are written as JavaScrip
122
130
  See also:
123
131
 
124
132
  - [Packages](../../help/develop/develop.md#packages)
125
- - [JavaScript API](../../help/develop/js-api.md)
133
+ - [JavaScript API](../../help/develop/packages/js-api.md)