Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 24, 2024 via pnpm

d3-scale 2.1.0

Encodings that map abstract data to visual representation.
Package summary
Share
1
issue
1
high severity
vulnerability
1
1
license
8
BSD-3-Clause
Package created
29 Mar 2014
Version published
16 Jun 2018
Maintainers
2
Total deps
8
Direct deps
6
License
BSD-3-Clause

Issues

1

1 high severity issue

high
Recommendation: Upgrade to version 3.1.0 or later
via: d3-interpolate@1.4.0
Collapse
Expand

Licenses

BSD 3-Clause "New" or "Revised" License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
place-warranty
Cannot
use-trademark
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
d3-array@1.2.4
d3-collection@1.0.7
d3-color@1.4.1
d3-format@1.4.5
d3-interpolate@1.4.0
d3-scale@2.1.0
d3-time-format@2.3.0
d3-time@1.1.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

6
All Dependencies CSV
β“˜ This is a list of d3-scale 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
d3-array1.2.427.71 kBBSD-3-Clause
prod
d3-collection1.0.729.45 kBBSD-3-Clause
prod
d3-format1.4.514.74 kBBSD-3-Clause
prod
d3-interpolate1.4.018.26 kBBSD-3-Clause
prod
1
d3-time-format2.3.021.19 kBBSD-3-Clause
prod
d3-time1.1.012.19 kBBSD-3-Clause
prod

Visualizations

Frequently Asked Questions

What does d3-scale do?

D3-scale is an npm package that maps abstract data to visual representation through scales. The scales offer a convenient workflow when mapping a dimension of abstract data to a visual representation. It encompasses a variety of visual encodings such as position, colors, widths, and symbol size, and is compatible with all types of data, such as categorical, discrete, and named. This makes d3-scale a valuable tool in the construction of data visualization projects, like scatterplots, bar charts, or heat maps.

How do you use d3-scale?

Using d3-scale comes with this simple installation via npm: npm install d3-scale. It can then be imported into a project through its module syntax: import {scaleLinear} from "https://cdn.skypack.dev/d3-scale@4". A usage example would be:

<script type="module">
    import {scaleLinear} from "https://cdn.skypack.dev/d3-scale@4";
    const x = scaleLinear();
</script>

Once imported, a scale can then be created and utilized flexibly based on your specific project needs. For instance, a linear scale could be created like so:

var x = d3.scaleLinear()
    .domain([10, 130])
    .range([0, 960]);

x(20); // Returns 80
x(50); // Returns 320

Here, the domain has been set to go from 10 to 130, while the range runs from 0 to 960.

Where are the d3-scale docs?

The documentation for d3-scale is primarily housed in its GitHub repository (https://github.com/d3/d3-scale). The readme provides a thorough overview of the package, along with detailed API references and usage examples for each type of scale (continuous, ordinal, quantize, etc.). There are also links to relevant tutorials and additional resources for further understanding and utilization of the d3-scale tool.