@carbon/charts-vue 1.5.0 → 1.5.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
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.5.1](https://github.com/carbon-design-system/carbon-charts/compare/v1.5.0...v1.5.1) (2022-08-08)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-vue
9
+
10
+
11
+
12
+
13
+
6
14
  # [1.5.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.4.0...v1.5.0) (2022-07-22)
7
15
 
8
16
  **Note:** Version bump only for package @carbon/charts-vue
@@ -12023,7 +12023,7 @@ function formatTick(tick, i, allTicks, interval, timeScaleOptions) {
12023
12023
  // if the interval, and the timestamp includes milliseconds value
12024
12024
  if (interval === '15seconds' && date.getMilliseconds() !== 0) {
12025
12025
  // show milliseconds in tick
12026
- formatString = formatString.replace('pp', 'h:m:s.SSS a');
12026
+ formatString = formatString.replace('pp', 'h:mm:ss.SSS a');
12027
12027
  }
12028
12028
  var locale = timeScaleOptions.localeObject;
12029
12029
  return format_format(date, formatString, { locale: locale });
@@ -24241,7 +24241,9 @@ var tooltip_Tooltip = /** @class */ (function (_super) {
24241
24241
  }
24242
24242
  try {
24243
24243
  // it's a correct ISO format Date string
24244
- return format_format(Date.parse(value), 'MMM d, yyyy');
24244
+ if (typeof value === 'string' && (/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(value))) {
24245
+ return format_format(Date.parse(value), 'MMM d, yyyy');
24246
+ }
24245
24247
  }
24246
24248
  catch (e) {
24247
24249
  // not a valid ISO format string