
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
d3-stacked-rect
Advanced tools

$ npm install --save d3-stacked-react
Below is the example of custom components:
<D3StackedRect data={data} height={700} color="#96cc66" />
data: PropTypes.object.isRequiredconst data = {
titles: {
P3: 10,
P4: 12,
P5: 13,
P6: 8,
P7: 3,
P8: 3,
P9: 2,
},
subTitles: {
P3: 'Junior Engineer',
P4: 'Engineer',
P5: 'Senior Engineer',
P6: '',
P7: 'Senior Principle Engineer',
P8: 'Lead Principle Engineer',
P9: 'Distinguised Engineer',
},
};
Note: if associated title field in subTitles is empty, it won't render the subTitles. Otherwise, it will add '-' to the subTitles.
height: PropTypes.number.isRequiredSet the height of of the SVG.
color: PropTypes.stringSet the color of of the SVG, should be a hash string like '#96cc66', if not given, will use random color
This project use Parcel. If you hasn't install it, you might need install Parcel first.
npm install -g parcel-bundler
or
yarn global add parcel-bundler
$ git clone git@github.com:cthroo/d3-stacked-rect.git
$ cd d3-stacked-rect
$ npm install
$ npm run dev
Then
open http://localhost:1234
## License
MIT
FAQs
Draw d3 stacked rect SVG based on their weights
We found that d3-stacked-rect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.