Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@vx/legend
Advanced tools
npm install --save @vx/legend
Legends associate shapes and colors to data.
// legends for linear scales
import { LegendLinear } from '@vx/legend';
// legends for quantile scales
import { LegendQuantile } from '@vx/legend';
// legends for ordinal scales
import { LegendOrdinal } from '@vx/legend';
// legends for size scales
import { LegendSize } from '@vx/legend';
// legends for threshold scales
import { LegendThreshold } from '@vx/legend';
// custom legends
import { Legend } from '@vx/legend';
import { LegendThreshold } from '@vx/legend';
import { scaleThreshold } from '@vx/scale';
const threshold = scaleThreshold({
domain: [0.02, 0.04, 0.06, 0.08, 0.1],
range: [
'#f2f0f7',
'#dadaeb',
'#bcbddc',
'#9e9ac8',
'#756bb1',
'#54278f',
],
});
function MyChart() {
return (
<div>
<svg>{/** chart stuff */}</svg>
<LegendThreshold
scale={threshold}
direction="column-reverse"
itemDirection="row-reverse"
labelMargin="0 20px 0 0"
shapeMargin="1px 0 0"
/>
</div>
);
}
v0.0.179
propTypes
to all components. #371Changes:
- @vx/annotation: 0.0.178 => 0.0.179
- @vx/axis: 0.0.178 => 0.0.179
- @vx/brush: 0.0.165 => 0.0.179
- @vx/demo: 0.0.178 => 0.0.179
- @vx/drag: 0.0.165 => 0.0.179
- @vx/event: 0.0.165 => 0.0.179
- @vx/geo: 0.0.170 => 0.0.179
- @vx/glyph: 0.0.170 => 0.0.179
- @vx/grid: 0.0.178 => 0.0.179
- @vx/heatmap: 0.0.173 => 0.0.179
- @vx/hierarchy: 0.0.170 => 0.0.179
- @vx/legend: 0.0.178 => 0.0.179
- @vx/marker: 0.0.178 => 0.0.179
- @vx/mock-data: 0.0.165 => 0.0.179
- @vx/network: 0.0.172 => 0.0.179
- @vx/pattern: 0.0.165 => 0.0.179
- @vx/responsive: 0.0.177 => 0.0.179
- @vx/scale: 0.0.178 => 0.0.179
- @vx/shape: 0.0.178 => 0.0.179
- @vx/stats: 0.0.178 => 0.0.179
- @vx/text: 0.0.175 => 0.0.179
- @vx/threshold: 0.0.178 => 0.0.179
- @vx/tooltip: 0.0.165 => 0.0.179
- @vx/vx: 0.0.178 => 0.0.179
FAQs
vx legend
The npm package @vx/legend receives a total of 31,096 weekly downloads. As such, @vx/legend popularity was classified as popular.
We found that @vx/legend 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.