All Classes and Interfaces
Class
Description
Area Chart with 3 series
Null Y-Axis Data Points
Combination of Line and Area Chart
Area Chart with 3 series
Area Chart with 1 series
Basic Bar Chart
Date Categories
Stacked Bar Chart
Missing Point in Series
GGPlot2 Theme Bar chart
Histogram Overlapped
Histogram Not Overlapped
Histogram with Error Bars
Category chart with Bar, Line and Scatter Series
Stepped Chart Histogram
Stacked Bar Chart
Stacked Bars with Overlapped Line Chart
Stacked Bars with a Line on a secondary Y-Axis
Colors are taken from colorbrewer2.org.
A helper class with static methods for saving Charts as bitmaps
Box plot calculation method, method for determining the position of the quartile
Basic Bubble Chart
Bubble Chart with Custom Tooltips
A Series containing X, Y and bubble size data to be plotted on a Chart
A Series containing category data to be plotted on a Chart
A "Builder" to make creating charts easier
Holds all styling configuration for the chart zoom-reset button rendered inside
XChartPanel.Position of the button within the chart plot area.
Pre-defined Colors used for various Chart Elements
An immutable snapshot of a single rendered data point that the mouse is interacting with.
Unified, format-agnostic entry point for exporting a
IChart.A helper class with static methods for rendering Charts as console/terminal text
This class is used to export Chart data to a folder containing one or more CSV files.
This class is used to create a Chart object from a folder containing one or more CSV files.
Listener for mouse interactions with individual rendered data points (bars, markers, pie slices,
bubbles, etc.).
Millisecond Scale
Second Scale
Minute Scale *
Hour Scale
Day Scale
Month scale
Year scale
Year scale
Year scale
Dial Chart
Dial Chart
A Series containing Radar data to be plotted on a Chart
Creates a simple Chart using QuickChart
Creates a simple Chart and saves it in every supported export format via the unified
ChartEncoder.Create a Chart matrix
Generates an AVIF sample chart (
./Sample_Chart.avif) in the project root.Generates a WebP sample chart (
./Sample_Chart.webp) in the project root.Generates the static XChart GitHub Pages website.
A helper class with static methods for saving Charts as a GIF file
Basic HeatMap Chart
HeatMap large
HeatMap Piecewise
HeatMap X-Axis Data Date Type
HeatMap Piecewise
A Series containing X, Y and heatData data to be plotted on a Chart
This class can be used to create histogram
Basic Horizontal Bar Chart
Date Categories
GGPlot2 Theme Horizontal Bar chart
Multiple series, labels and tooltips
A Series containing horizontal bar data to be plotted on a Chart
Class showing how to integrate a chart into a JavaFX Stage, embedded in a layout container
(VBox) alongside other controls so that everything resizes with the window.
Logarithmic Y-Axis
Sine wave with customized series style
Customized Chart
Hundreds of Series on One Plot
Scatter and Line
Logarithmic Y-Axis with Error Bars
Category Chart with Line Rendering
Logarithmic Y-Axis
Cursor
Annotations
Merged Y-Axes — Weather Station
Demonstrates the following:
Tooltips
LegendPosition.OutsideS *
default OHLCSeriesRenderStyle.Candle
Demonstrates the following:
Tooltips
Candle render style green down, red up
LegendPosition.OutsideS
OHLCSeriesRenderStyle.HiLo
Demonstrates the following:
Tooltips
LegendPosition.InsideS
default OHLCSeriesRenderStyle.Candle
3 series with Line render style
A helper class with static methods for saving Charts as a PDF file
Pie Chart with 4 Slices
Pie Chart Custom Color Palette
Pie Chart GGPlot2 Theme
Pie Chart with Donut Style
Pie Chart - circle with border
A Series containing Pie data to be plotted on a Chart
Deprecated.
A convenience class for making Charts with one line of code
Radar Chart
Radar Chart
Radar Chart with counter-clockwise layout
A Series containing Radar data to be plotted on a Chart
Real-time XY Chart
Real-time Pie Chart
Real-time XY Chart with Error Bars
Real-time Bubble Chart
Real-time Category Chart
Real-time OHLC Chart
Gaussian Blob
Logarithmic Data
Single point
Error Bars
Pre-defined Line Styles used for Series Lines
Creates a simple real-time chart
Basic Stick Chart
Hydrogen Spectral Emission Lines — TeX Labels Demo
The styler is used to manage all things related to styling of the vast number of Chart components
Class showing how to integrate a chart into a Swing JFrame
Creates a real-time chart using SwingWorker
A convenience class used to display a Chart in a barebones Swing application
Creates a list of Charts and saves it as a PNG file.
Issue #1004 —
AnnotationImage screen-space placement centers a NON-square image
vertically using the image WIDTH instead of its HEIGHT.Demonstrates TeX/LaTeX formula support in chart elements (issue #125).
Demonstrates that x-axis labels no longer overlap when there are many categories.
Create a Chart matrix
Reproduces issue #192: show all labels and percentages on a pie chart.
Dial Chart
Issue #236: "Collate y axis values for same x axis values in Category chart"
Logarithmic Y-Axis Demonstrates the following:
Logarithmic Y-Axis
Building a Chart with ChartBuilder
Place legend at Inside-NW position
Reproducer / how-to for https://github.com/knowm/XChart/issues/256
Issue #465 — Stacked Area chart.
Demonstrates smooth curved lines in a CategoryChart (string X-axis labels).
Reproducer for issue #481: Incorrect x-axis value for multiple histograms.
Issue #492: Collision detection — fire a callback when the mouse hovers over or clicks an
individual rendered shape (e.g. the first bar in a bar chart).
Issue #500: data labels can be placed outside (on top of) the bars again, as in 3.6.1.
Issue #500: data labels can be placed outside the bars for horizontal bar charts too.
Issue #503 — Axis Title Padding does not apply to the second (right-side) Y-Axis.
Create a Chart matrix
Create a Chart matrix
Reproducer for https://github.com/knowm/XChart/issues/577
Demonstrates issue #585 — a symmetric colormap definition produces an asymmetric legend.
Issue #589 — annotations could not be resolved against a secondary Y-Axis group.
Demonstrates the fix for issue #593 — cursor dataPointList memory leak in live XYCharts.
Demonstrates issue #618 —
setYAxisLabelAlignment(TextAlignment.Right) does not right-align
every Y-axis tick label.Issue #634: "I found negative number label on y axis, but the data are all positive."
Demonstrates how to map specific X-axis tick positions to custom label strings using
AxesChartStyler.setXAxisTickLabelsFormattingFunction(java.util.function.Function).Demonstrates issue #679 — custom tooltips via
setToolTipGenerator(...), available on
every series type.Demonstrates that a very long series name is truncated in the legend rather than breaking the
chart layout.
Reproducer / how-to for https://github.com/knowm/XChart/issues/699
Demonstrates independent chart title font color control (issue #706).
Demonstrates the fix for issue #712 — NullPointerException when the chart panel is resized to be
very small.
Demonstrates that removing all series from a chart no longer throws NoSuchElementException when
the chart is repainted (issue #739).
Reproducer / how-to for https://github.com/knowm/XChart/issues/761
Demonstrates the fix for issue #770 — zoom support for OHLCChart.
Demonstrates bar label visibility with custom fill colors in various positions.
Demonstrates that a doji candle (open == close) renders as a horizontal cross rather than just a
vertical line.
Demonstrates the fix for issue #792 —
setXAxisTickLabelsFormattingFunction dropping
tick labels when the formatting function intentionally returns duplicate strings.Reproducer for GitHub issue #799: BitmapEncoder hang / crash when a custom Y-axis tick label
formatter returns empty strings for unmapped values.
Demonstrates issue #805 — cursor label displays the wrong Y value.
Issue #815 - Extra space below min Y-axis value when calling setYAxisMin(0.0).
Demonstrates issue #816 — controlling the width of the boxes in a box plot.
Verifies that a custom Y-axis tick label formatter works correctly with a logarithmic Y-axis.
Demonstrates the fix for issue #862 —
BitmapEncoder.saveBitmap(org.knowm.xchart.internal.chartpart.IChart, java.lang.String, org.knowm.xchart.BitmapEncoder.BitmapFormat) throws NPE when tooltips
are enabled.Demonstrates issue #868 — the locale set on the
PieStyler now takes effect on slice
labels and tooltips.Demonstrates memory-efficient primitive-array usage for XYChart (issue #879).
Reproduces issue #881: AnnotationType and setAnnotationDistance removed since 3.8.1.
Reproducer / how-to for https://github.com/knowm/XChart/issues/884
Demonstrates the fix for issue #886 — UI freeze when the chart window is too narrow.
Reproducer for https://github.com/knowm/XChart/issues/890
Reproducer for https://github.com/knowm/XChart/issues/891
Reproducer for https://github.com/knowm/XChart/issues/892
Demonstrates the fix for issue #914 — anti-aliasing flags were silently ignored.
Demonstrates merged Y-axes (issue #916): two series with very different value ranges share a
single axis line per side.
Demonstrates issue #975 — chart button styling moved out of
Styler/Theme into
ChartButtonConfig on XChartPanel.Demonstrates PR #847 — custom label generator for pie charts.
Demonstrates PR #866 — new HorizontalBarChart chart type.
Default XChart Theme
GGPlot2 Theme
Matlab Theme
My Custom Theme
Generates custom tooltip text for a series' data points, replacing the default label built from
the formatted axis values.
A helper class with static methods for saving Charts as vectors
Class containing all XChart example charts
A Swing JPanel that contains a Chart
A Series containing X and Y data to be plotted on a Chart
PieStyler.LabelTypewithPieStyler.setLabelType(LabelType)instead.