@cloudflare/chart-time
Advanced tools
Comparing version 3.4.3 to 3.4.4
@@ -6,2 +6,10 @@ # Change Log | ||
## [3.4.4](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/chart-time@3.4.3...@cloudflare/chart-time@3.4.4) (2019-02-23) | ||
**Note:** Version bump only for package @cloudflare/chart-time | ||
## [3.4.3](http://stash.cfops.it:7999/fe/stratus/compare/@cloudflare/chart-time@3.4.2...@cloudflare/chart-time@3.4.3) (2019-02-13) | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "@cloudflare/chart-time", | ||
"description": "Cloudflare time-based chart presentational components", | ||
"version": "3.4.3", | ||
"version": "3.4.4", | ||
"main": "lib/index.js", | ||
@@ -14,7 +14,7 @@ "module": "es/index.js", | ||
"dependencies": { | ||
"@cloudflare/component-box": "^2.1.12", | ||
"@cloudflare/component-text": "^2.1.12", | ||
"@cloudflare/style-const": "^2.2.1", | ||
"@cloudflare/style-container": "^4.3.0", | ||
"@cloudflare/style-provider": "^1.2.10", | ||
"@cloudflare/component-box": "^2.1.13", | ||
"@cloudflare/component-text": "^2.1.13", | ||
"@cloudflare/style-const": "^2.2.2", | ||
"@cloudflare/style-container": "^4.3.1", | ||
"@cloudflare/style-provider": "^1.2.11", | ||
"d3-scale": "^2.1.2", | ||
@@ -42,3 +42,3 @@ "d3-time": "^1.0.7", | ||
}, | ||
"gitHead": "c74bbb37f63d3660168aa442924a68ad56c71af0" | ||
"gitHead": "f3155569c68fabfe252405b9e348fcfdbeb511b9" | ||
} |
@@ -96,7 +96,8 @@ export default ({ | ||
const nvd3Data = Object.values(series).sort( | ||
(a, b) => | ||
a.key === OTHER_LABEL | ||
? 1 | ||
: b.key === OTHER_LABEL ? -1 : seriesComparator(a.key, b.key) | ||
const nvd3Data = Object.values(series).sort((a, b) => | ||
a.key === OTHER_LABEL | ||
? 1 | ||
: b.key === OTHER_LABEL | ||
? -1 | ||
: seriesComparator(a.key, b.key) | ||
); | ||
@@ -145,3 +146,5 @@ | ||
minStep: step | ||
? agg.minStep < Infinity ? gcd(agg.minStep, step) : step | ||
? agg.minStep < Infinity | ||
? gcd(agg.minStep, step) | ||
: step | ||
: Infinity | ||
@@ -159,7 +162,3 @@ }; | ||
throw new Error( | ||
`Refusing to plot chart-time. The specified data points have a common time granularity of ${ | ||
minStep | ||
} msecs, which would generate too many time points (${ | ||
numTimePoints | ||
}). Please ensure all the timestamps in the data are at reasonably regular intervals.` | ||
`Refusing to plot chart-time. The specified data points have a common time granularity of ${minStep} msecs, which would generate too many time points (${numTimePoints}). Please ensure all the timestamps in the data are at reasonably regular intervals.` | ||
); | ||
@@ -166,0 +165,0 @@ } |
@@ -61,10 +61,14 @@ import { | ||
: t.minute(date) < date | ||
? f.second | ||
: t.hour(date) < date | ||
? f.minute | ||
: t.day(date) < date | ||
? f.hour | ||
: t.month(date) < date | ||
? t.week(date) < date ? f.day : f.week | ||
: t.year(date) < date ? f.month : f.year)(date); | ||
? f.second | ||
: t.hour(date) < date | ||
? f.minute | ||
: t.day(date) < date | ||
? f.hour | ||
: t.month(date) < date | ||
? t.week(date) < date | ||
? f.day | ||
: f.week | ||
: t.year(date) < date | ||
? f.month | ||
: f.year)(date); | ||
} |
@@ -85,5 +85,4 @@ import React from 'react'; | ||
<Text> | ||
<BoldInline>{Math.round(ser.value * 1000) / 10}</BoldInline>% ({valueFormatter( | ||
ser.point.val | ||
)} | ||
<BoldInline>{Math.round(ser.value * 1000) / 10}</BoldInline>% ( | ||
{valueFormatter(ser.point.val)} | ||
{!!valueUnits && ` ${valueUnits}`}) | ||
@@ -90,0 +89,0 @@ </Text> |
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
150348
2276