Package org.patternfly.chart


package org.patternfly.chart
Provides PatternFly chart implementations for building data visualizations in Java.

This package contains the core chart infrastructure of PatternFly Java, wrapping PatternFly chart web components. Charts are built using the same fluent builder API as other PatternFly Java components and work with both GWT and J2CL.

Core Classes

This package provides the shared foundation for all chart types:

Available Chart Types

  • Bullet - Bullet charts for comparing a measure against ranges and markers
  • Donut - Donut charts for displaying proportional data
  • Pie - Pie charts for displaying proportional data as a circle
  • DonutUtilization - Donut utilization charts for capacity and usage
  • DonutThreshold - Donut threshold charts with warning and danger levels

Quick Start

Charts are created using static factory methods and configured with a fluent builder API:
import static org.patternfly.chart.Data.data;
import static org.patternfly.chart.donut.Donut.donut;

Donut chart = donut()
        .title("100")
        .subTitle("Pets")
        .ariaTitle("Donut chart example")
        .ariaDesc("Average number of pets")
        .data(data("Cats", 35), data("Dogs", 55), data("Birds", 10))
        .labels(data -> data.x + ": " + data.y + "%");
See Also: