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:Chart- Common chart interfaceBaseChart- Base class for all chart implementationsData- Data point representation withxandyvaluesChartThemeColor- Theme color presets for chartsLegendPositionandLegendOrientation- Legend placementPadding- Chart padding configurationThreshold- Threshold value definitions
Available Chart Types
Bullet- Bullet charts for comparing a measure against ranges and markersDonut- Donut charts for displaying proportional dataPie- Pie charts for displaying proportional data as a circleDonutUtilization- Donut utilization charts for capacity and usageDonutThreshold- 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:
-
ClassDescription