Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
d3plus-viz
Advanced tools
Abstract ES6 class that drives d3plus visualizations.
If you use NPM, npm install d3plus-viz
. Otherwise, download the latest release. The released bundle supports AMD, CommonJS, and vanilla environments. Create a custom bundle using Rollup or your preferred bundler. You can also load directly from d3plus.org:
<script src="https://d3plus.org/js/d3plus-viz.v0.5.full.min.js"></script>
BaseClass
Kind: global class
Extends: BaseClass
BaseClass
Creates an x/y plot based on an array of data. If data is specified, immediately draws the tree map based on the specified array and returns the current class instance. If data is not specified on instantiation, it can be passed/updated after instantiation using the data method. See this example for help getting started using the treemap generator.
Draws the visualization given the specified configuration.
Kind: static method of Viz
Chainable
Param | Type | Description |
---|---|---|
[callback] | function | An optional callback function that, if passed, will be called after animation is complete. |
If value is specified, sets the active method to the specified function and returns the current class instance. If value is not specified, returns the current active method.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | function |
If value is specified, sets the aggregation method for each key in the object and returns the current class instance. If value is not specified, returns the current defined aggregation methods.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Object |
If value is specified, sets the config method for the back button and returns the current class instance. If value is not specified, returns the current back button configuration.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Object |
If data is specified, sets the data array to the specified array and returns the current class instance. If data is not specified, returns the current data array.
Kind: static method of Viz
Chainable
Param | Type | Default |
---|---|---|
[data] | Array | [] |
If value is specified, sets the depth to the specified number and returns the current class instance. The value should correspond with an index in the groupBy array. If value is not specified, returns the current depth.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Number |
If value is specified, sets the discrete accessor to the specified method name (usually an axis) and returns the current class instance. If value is not specified, returns the current discrete method.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | String |
If ms is specified, sets the animation duration to the specified number and returns the current class instance. If ms is not specified, returns the current animation duration.
Kind: static method of Viz
Chainable
Param | Type | Default |
---|---|---|
[ms] | Number | 600 |
If value is specified, sets the filter to the specified function and returns the current class instance. If value is not specified, returns the current filter.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | function |
If value is specified, sets the group accessor(s) to the specified string, function, or array of values and returns the current class instance. If value is not specified, returns the current group accessor.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | String | function | Array |
Example
function value(d) {
return d.id;
}
If value is specified, sets the overall height to the specified number and returns the current class instance. If value is not specified, returns the current overall height.
Kind: static method of Viz
Chainable
Param | Type | Default |
---|---|---|
[value] | Number | window.innerHeight |
If value is specified, sets the hover method to the specified function and returns the current class instance. If value is not specified, returns the current hover method.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | function |
If value is specified, sets the label accessor to the specified function or string and returns the current class instance. If value is not specified, returns the current text accessor, which is undefined
by default.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | function | String |
If value is specified, toggles the legend based on the specified boolean and returns the current class instance. If value is not specified, returns the current value.
Kind: static method of Viz
Chainable
Param | Type | Default |
---|---|---|
[value] | Boolean | true |
If value is specified, the object is passed to the legend's config method. If value is not specified, returns the current legend config.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Object |
If value is specified, sets the locale to the specified string and returns the current class instance. If value is not specified, returns the current locale.
Kind: static method of Viz
Chainable
Param | Type | Default |
---|---|---|
[value] | String | "en-US" |
If selector is specified, sets the SVG container element to the specified d3 selector or DOM element and returns the current class instance. If selector is not specified, returns the current SVG container element, which is undefined
by default.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[selector] | String | HTMLElement |
If value is specified, sets the shape accessor to the specified function or number and returns the current class instance. If value is not specified, returns the current shape accessor.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | function | String |
If value is specified, sets the config method for each shape and returns the current class instance. If value is not specified, returns the current shape configuration.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Object |
If value is specified, sets the time accessor to the specified function or string and returns the current class instance. If value is not specified, returns the current time accessor. The time values that are returned should be valid Date objects, 4-digit year values, or strings that can be parsed into javascript Date objects (click here for valid string formats).
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | function | String |
If value is specified, sets the time filter to the specified function and returns the current class instance. If value is not specified, returns the current time filter.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | function |
If value is specified, toggles the timeline based on the specified boolean and returns the current class instance. If value is not specified, returns the current timeline visibility.
Kind: static method of Viz
Chainable
Param | Type | Default |
---|---|---|
[value] | Boolean | true |
If value is specified, sets the config method for the timeline and returns the current class instance. If value is not specified, returns the current timeline configuration.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Object |
If value is specified, sets the title accessor to the specified function or string and returns the current class instance. If value is not specified, returns the current title accessor.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | function | String |
If value is specified, sets the config method for the title and returns the current class instance. If value is not specified, returns the current title configuration.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Object |
If value is specified, toggles the tooltip based on the specified boolean and returns the current class instance. If value is not specified, returns the current tooltip visibility.
Kind: static method of Viz
Chainable
Param | Type | Default |
---|---|---|
[value] | Boolean | true |
If value is specified, sets the config method for the tooltip and returns the current class instance. If value is not specified, returns the current tooltip configuration.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Object |
If value is specified, sets the total accessor to the specified function or string and returns the current class instance. If value is not specified, returns the current total accessor.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Boolean | function | String |
If value is specified, sets the config method for the total and returns the current class instance. If value is not specified, returns the current total configuration.
Kind: static method of Viz
Chainable
Param | Type |
---|---|
[value] | Object |
If value is specified, sets the overallwidth to the specified number and returns the current class instance. If value is not specified, returns the current overall width.
Kind: static method of Viz
Chainable
Param | Type | Default |
---|---|---|
[value] | Number | window.innerWidth |
FAQs
Abstract ES6 class that drives d3plus visualizations.
The npm package d3plus-viz receives a total of 479 weekly downloads. As such, d3plus-viz popularity was classified as not popular.
We found that d3plus-viz demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.