Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
@patternfly/react-charts
Advanced tools
This library provides a set of React chart components for use with the PatternFly reference implementation.
This package provides PatternFly charting components for [PatternFly][patternfly].
yarn add @patternfly/react-charts
or
npm install @patternfly/react-charts --save
It's strongly advised to use the PatternFly Base CSS in your whole project, or some components may diverge in appearance:
import '@patternfly/react-core/dist/styles/base.css';
import { Area } from '@patternfly/react-charts/victory';
export default <Area />;
<Area data={[{ x: 1, y: 1 }, { x: 2, y: 2 }]} />;
All css related to each component is provided alongside it. There is no component level CSS to import.
This project uses Gatsby. For an overview of the project structure please refer to the Gatsby documentation - Building with Components.
A comprehensive list of components and detailed usage of each can be found on the PatternFly React Docs website You can also find how each component is meant to be used from a design perspective on the PatternFly 4 Core website.
Note: All commands below assume you are on the root directory in this repository.
Run to install all the dependencies, build and run the site locally.
yarn install && yarn start
This library makes use of the babel plugin from @patternfly/react-styles to enable providing the CSS alongside the components. This removes the need for consumers to use (style|css|sass)-loaders. For any CSS not provided by core please use the StyleSheet.create
utility from @patternfly/react-styles. This will prevent collisions with any consumers, and allow the CSS to be bundled with the component.
yarn build
Note the build scripts for this are located in the root package.json under yarn build
.
Testing is done at the root of this repo. To only run the @patternfly/react-charts tests:
yarn test packages/react-charts
FAQs
This library provides a set of React chart components for use with the PatternFly reference implementation.
The npm package @patternfly/react-charts receives a total of 5,739 weekly downloads. As such, @patternfly/react-charts popularity was classified as popular.
We found that @patternfly/react-charts 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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.