@gravity-ui/chartkit
Advanced tools
Comparing version 2.2.0 to 2.2.1
import moment from 'moment'; | ||
import lodashMin from 'lodash/min'; | ||
import { i18n } from '../../../../i18n'; | ||
import { ChartKitError, CHARTKIT_ERROR_CODE } from '../../../../libs'; | ||
@@ -93,3 +94,6 @@ import { DEFAULT_LINES_LIMIT } from './constants'; | ||
(Array.isArray(data) && !data.length)) { | ||
throw new ChartKitError({ code: CHARTKIT_ERROR_CODE.NO_DATA }); | ||
throw new ChartKitError({ | ||
code: CHARTKIT_ERROR_CODE.NO_DATA, | ||
message: i18n('error', 'label_no-data'), | ||
}); | ||
} | ||
@@ -96,0 +100,0 @@ if (data.graphs) { |
# Changelog | ||
## [2.2.1](https://github.com/gravity-ui/chartkit/compare/v2.2.0...v2.2.1) (2023-03-27) | ||
### Bug Fixes | ||
* **Highcharts plugin:** proper message for empty data ([#140](https://github.com/gravity-ui/chartkit/issues/140)) ([ee41ace](https://github.com/gravity-ui/chartkit/commit/ee41ace81ddaa88601b584273a7759dfe1dbe1c9)) | ||
## [2.2.0](https://github.com/gravity-ui/chartkit/compare/v2.1.0...v2.2.0) (2023-03-21) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "@gravity-ui/chartkit", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "React component used to render charts based on any sources you need", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
918773
26155