
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@aquassay/d3-horizon
Advanced tools
Horizon graph for D3
npm i @aquassay/d3-horizon
To show your data, You have to do this :
import { horizon } from '@aquassay/d3-horizon';
const container = document.getElementById('#my-horizon-container');
const data = [/* your data here */];
const svg = horizon(data);
container.innerHTML = '';
container.appendChild(svg);
And, if you want to export them to SVG file, You have to do this :
import { getURL } from '@aquassay/d3-horizon';
const link = document.createElement('a');
const url = getURL(svg);
link.href = url;
link.download = 'export.svg';
link.click();
If you want to make a Selection of the data, You can with this : Actually, it return only the first and last dates of the selected range.
import { horizon } from '@aquassay/d3-horizon';
const container = document.getElementById('#my-horizon-container');
const data = [/* your data here */];
const svg = horizon(data, {
onSelectedEnd(range) {
// action on select part like request more data with axios and redraw the graphics like a zoom
},
onSelectedStart() {
// action on start select to force the hiding of the tooltip or other stuff if needed
},
});
container.innerHTML = '';
container.appendChild(svg);
FAQs
Horizon chart for D3
We found that @aquassay/d3-horizon demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.