Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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.181
For a summary and before + after of changes please see: https://github.com/hshoff/vx/pull/383
Changes:
- @vx/annotation: 0.0.179 => 0.0.181
- @vx/axis: 0.0.179 => 0.0.181
- @vx/boxplot: 0.0.170 => 0.0.181
- @vx/demo: 0.0.180 => 0.0.181
- @vx/geo: 0.0.179 => 0.0.181
- @vx/glyph: 0.0.179 => 0.0.181
- @vx/grid: 0.0.180 => 0.0.181
- @vx/heatmap: 0.0.179 => 0.0.181
- @vx/hierarchy: 0.0.179 => 0.0.181
- @vx/legend: 0.0.179 => 0.0.181
- @vx/marker: 0.0.179 => 0.0.181
- @vx/shape: 0.0.179 => 0.0.181
- @vx/stats: 0.0.179 => 0.0.181
- @vx/threshold: 0.0.179 => 0.0.181
- @vx/voronoi: 0.0.170 => 0.0.181
- @vx/vx: 0.0.180 => 0.0.181
FAQs
vx legend
The npm package @vx/legend receives a total of 30,618 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.