@gravity-ui/chartkit 0.11.0 → 0.11.1
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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.11.1](https://github.com/gravity-ui/chartkit/compare/v0.11.0...v0.11.1) (2022-11-21)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **Highcharts plugin:** fix tooltip golidays handling ([9bc3f8c](https://github.com/gravity-ui/chartkit/commit/9bc3f8c7a62d3b269626be87a46de1d8a6949f57))
|
|
9
|
+
* **Highcharts plugin:** fix tooltip holidays handling ([#69](https://github.com/gravity-ui/chartkit/issues/69)) ([9bc3f8c](https://github.com/gravity-ui/chartkit/commit/9bc3f8c7a62d3b269626be87a46de1d8a6949f57))
|
|
10
|
+
|
|
3
11
|
## [0.11.0](https://github.com/gravity-ui/chartkit/compare/v0.10.1...v0.11.0) (2022-11-18)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -482,11 +482,11 @@ function getTooltip(tooltip, options, comments, holidays) {
|
|
|
482
482
|
if (region !== 'tot') {
|
|
483
483
|
json.region = region;
|
|
484
484
|
}
|
|
485
|
-
if (holidays.holiday[region][pointTimestamp]) {
|
|
485
|
+
if (holidays === null || holidays === void 0 ? void 0 : holidays.holiday[region][pointTimestamp]) {
|
|
486
486
|
json.holiday = true;
|
|
487
487
|
json.holidayText = holidays.holiday[region][pointTimestamp];
|
|
488
488
|
}
|
|
489
|
-
else if (holidays.weekend[region][pointTimestamp]) {
|
|
489
|
+
else if (holidays === null || holidays === void 0 ? void 0 : holidays.weekend[region][pointTimestamp]) {
|
|
490
490
|
json.weekend = true;
|
|
491
491
|
}
|
|
492
492
|
json.dayOfWeek = chart.time.dateFormat('%a', this.x);
|
package/package.json
CHANGED