Note: PatternFly React charts live in its own package at @patternfly/react-charts!
PatternFly React charts are based on the Victory chart library, along with additional functionality, custom components, and theming for PatternFly. This provides a collection of React based components you can use to build PatternFly patterns with consistent markup, styling, and behavior.
Multi color (ordered)
This demonstrates how to apply theme colors for ordered charts like bar, donut, pie, and stack
Multi color (unordered)
This demonstrates how to apply theme colors for unordered charts like area, line, and sparkline
- See Victory's FAQ
themeColorprops should be applied at the most top level component
ChartGroupto apply theme color scales and other properties to multiple components
Currently, the generated documention below is not able to resolve type definitions from Victory imports. For the components used in the examples above, Victory pass-thru props are also documented here:
- For theme props, see VictoryTheme