@fishawack/lab-d3
Advanced tools
Comparing version 2.7.1 to 2.7.2
## Changelog | ||
### 2.7.2 (2021-03-03) | ||
* [Feature] Band and Point scales can now have their axis tick values hard coded | ||
### 2.7.1 (2021-03-02) | ||
@@ -4,0 +7,0 @@ * [Feature] Box chart now supports single values |
{ | ||
"name": "@fishawack/lab-d3", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"description": "Abstract layer built on top of d3", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -488,3 +488,3 @@ "use strict"; | ||
if (att.scale[scale] === 'point') { | ||
local.scale[scale] = d3.scalePoint().domain(local.flatData.reduce(function (a, b) { | ||
local.scale[scale] = d3.scalePoint().domain(att.axis[scale].tickValues || local.flatData.reduce(function (a, b) { | ||
return a.concat(Shared[scale](b, att)); | ||
@@ -497,3 +497,3 @@ }, [])).padding(local.padding.outer); | ||
} else if (att.scale[scale] === 'band') { | ||
local.scale[scale] = d3.scaleBand().domain(local.flatData.reduce(function (a, b) { | ||
local.scale[scale] = d3.scaleBand().domain(att.axis[scale].tickValues || local.flatData.reduce(function (a, b) { | ||
return a.concat(Shared[scale](b, att)); | ||
@@ -500,0 +500,0 @@ }, [])).paddingInner(local.padding.inner).paddingOuter(local.padding.outer); |
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
567603