Comparing version 0.0.193 to 0.0.194
@@ -13,2 +13,3 @@ export { default as scaleBand } from './scales/band'; | ||
export { default as scaleThreshold } from './scales/threshold'; | ||
export { default as updateScale } from './util/updateScale'; | ||
export { default as updateScale } from './util/updateScale'; | ||
export { default as scaleSqrt } from './scales/squareRoot'; |
@@ -14,2 +14,3 @@ export { default as scaleBand } from './scales/band'; | ||
export { default as updateScale } from './util/updateScale'; | ||
export { default as scaleSqrt } from './scales/squareRoot'; | ||
//# sourceMappingURL=index.d.ts.map |
"use strict"; | ||
exports.__esModule = true; | ||
exports.updateScale = exports.scaleThreshold = exports.scaleSymlog = exports.scaleQuantile = exports.scaleQuantize = exports.scaleOrdinal = exports.scalePower = exports.scaleLog = exports.scaleUtc = exports.scaleTime = exports.scaleLinear = exports.scalePoint = exports.scaleBand = void 0; | ||
exports.scaleSqrt = exports.updateScale = exports.scaleThreshold = exports.scaleSymlog = exports.scaleQuantile = exports.scaleQuantize = exports.scaleOrdinal = exports.scalePower = exports.scaleLog = exports.scaleUtc = exports.scaleTime = exports.scaleLinear = exports.scalePoint = exports.scaleBand = void 0; | ||
@@ -58,2 +58,6 @@ var _band = _interopRequireDefault(require("./scales/band")); | ||
var _squareRoot = _interopRequireDefault(require("./scales/squareRoot")); | ||
exports.scaleSqrt = _squareRoot.default; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
{ | ||
"name": "@vx/scale", | ||
"version": "0.0.193", | ||
"version": "0.0.194", | ||
"description": "vx scale", | ||
@@ -37,3 +37,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "7af8bc6901a0f03c27f486fde2d0b66fc31d1903" | ||
"gitHead": "b4a5f3429b9bf9435922821fc31fcc39996a2e67" | ||
} |
# @vx/scale | ||
``` | ||
```sh | ||
npm install --save @vx/scale | ||
@@ -33,3 +33,3 @@ ``` | ||
**Note:** This example represents how to use a yScale, but skipped a lot of details about how to make a bar chart. If you're trying to do that, you should check out [this example](https://github.com/hshoff/vx/blob/master/packages/vx-demo/src/components/charts/SimpleBar.js). | ||
**Note:** This example represents how to use a yScale, but skipped a lot of details about how to make a bar chart. If you're trying to do that, you should check out [this example](https://github.com/hshoff/vx/blob/master/packages/vx-demo/src/components/charts/SimpleBar.ts). | ||
@@ -138,2 +138,21 @@ ## Current Scaling Options | ||
### Square Root Scaling | ||
[Original d3 docs](https://github.com/d3/d3-scale#scaleSqrt) | ||
Example: | ||
```javascript | ||
// No need to set the exponent, It is always 0.5 | ||
const scale = Scale.scaleSqrt({ | ||
/* | ||
range, | ||
rangeRound, | ||
domain, | ||
nice = false, | ||
clamp = false, | ||
*/ | ||
}); | ||
``` | ||
### Time Scaling | ||
@@ -176,3 +195,3 @@ [Original d3 docs](https://github.com/d3/d3-scale/blob/master/README.md#scaleTime) | ||
``` | ||
```sh | ||
npm install --save d3-scale-chromatic | ||
@@ -179,0 +198,0 @@ ``` |
Sorry, the diff of this file is not supported yet
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
43801
63
672
214