@dhis2/analytics 23.13.2 → 23.13.3
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,3 +1,10 @@
|
|
|
1
|
+
## [23.13.3](https://github.com/dhis2/analytics/compare/v23.13.2...v23.13.3) (2022-08-02)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* avoid ES2022 functions ([#1300](https://github.com/dhis2/analytics/issues/1300)) ([93ab848](https://github.com/dhis2/analytics/commit/93ab848e89e4c22a2d9ca20625287af892ef8d89))
|
|
7
|
+
|
|
1
8
|
## [23.13.2](https://github.com/dhis2/analytics/compare/v23.13.1...v23.13.2) (2022-08-01)
|
|
2
9
|
|
|
3
10
|
|
|
@@ -44,10 +44,10 @@ function drawLegendSymbolWrap() {
|
|
|
44
44
|
|
|
45
45
|
const legends = this.options.legendSet.legends.sort((a, b) => a.startValue - b.startValue);
|
|
46
46
|
this.chart.renderer.path(['M', x, ys, 'A', 1, 1, 0, 0, 0, x, ye, 'V', ys]).attr({
|
|
47
|
-
fill: legends
|
|
47
|
+
fill: legends[legends.length >= 5 ? 1 : 0].color
|
|
48
48
|
}).add(this.legendGroup);
|
|
49
49
|
this.chart.renderer.path(['M', x, ye, 'A', 1, 1, 0, 0, 0, x, ys, 'V', ye]).attr({
|
|
50
|
-
fill: legends
|
|
50
|
+
fill: legends[legends.length >= 5 ? legends.length - 2 : legends.length - 1].color
|
|
51
51
|
}).add(this.legendGroup);
|
|
52
52
|
} else {
|
|
53
53
|
var options = legend.options,
|
|
@@ -27,10 +27,10 @@ function drawLegendSymbolWrap() {
|
|
|
27
27
|
|
|
28
28
|
const legends = this.options.legendSet.legends.sort((a, b) => a.startValue - b.startValue);
|
|
29
29
|
this.chart.renderer.path(['M', x, ys, 'A', 1, 1, 0, 0, 0, x, ye, 'V', ys]).attr({
|
|
30
|
-
fill: legends
|
|
30
|
+
fill: legends[legends.length >= 5 ? 1 : 0].color
|
|
31
31
|
}).add(this.legendGroup);
|
|
32
32
|
this.chart.renderer.path(['M', x, ye, 'A', 1, 1, 0, 0, 0, x, ys, 'V', ye]).attr({
|
|
33
|
-
fill: legends
|
|
33
|
+
fill: legends[legends.length >= 5 ? legends.length - 2 : legends.length - 1].color
|
|
34
34
|
}).add(this.legendGroup);
|
|
35
35
|
} else {
|
|
36
36
|
var options = legend.options,
|