Key differences

  • XChart and JFreeChart have a similar number of GitHub stars (1.6K vs 1.4K).
  • XChart had more development activity over the last 12 months: 320 commits vs 0.
  • JFreeChart is licensed under LGPL-2.1; XChart under Apache-2.0.
  • XChart is the older project: its repository was created in 2011, JFreeChart's in 2016.
  • JFreeChart has had no commits since Jun 7, 2025.

By the numbers

  • JFreeChart
  • XChart
GitHub stars
1.4K 1.6K
Commits, last 12 months
0 320
Contributors
30 61
Forks
675 400
Show data as a table
JFreeChart vs XChart by the numbers
MetricJFreeChartXChart
GitHub stars1,3921,598
Commits, last 12 months0320
Contributors3061
Forks675400

Development activity

Commits per month to each default branch, last 12 complete months.

  • JFreeChart
  • XChart
050100150 Nov 2025 Dec Jan 2026 Feb Mar Apr May Jun Jul Aug Sep OctJFreeChartXChart
050100150 Nov 2025 Feb 2026 May Aug JFreeChartXChart
Show data as a table
JFreeChart vs XChart: commits per month
MonthJFreeChartXChart
Nov 202500
Dec 202500
Jan 202600
Feb 202600
Mar 202600
Apr 202600
May 20260145
Jun 2026054
Jul 2026097
Aug 202602
Sep 202603
Oct 2026019

Side by side

AttributeJFreeChartXChart
Description2D chart library for Java applications using Swing, JavaFX or server-side rendering.Lightweight Java library for plotting data.
CategoryJava, Kotlin & Scala visualization librariesJava, Kotlin & Scala visualization libraries
LicenseLGPL-2.1Apache-2.0
LanguageJavaJava
StatusInactiveActive
Latest releasev1.5.6 ()–
Last commit
Repository created
Open issues12644
Install
implementation("org.jfree:jfreechart:1.5.5")
implementation("org.knowm.xchart:xchart:3.8.8")

Which should you choose?

Popularity and activity are only part of the story. Consider which ecosystem you work in, the chart types and interactions you need, how much data you render, and whether the license fits your project. Both tool pages list alternatives if neither is quite right.

  • JFreeChart

    2D chart library for Java applications using Swing, JavaFX or server-side rendering.

    1.4K starsJavaLGPL-2.1

  • XChart

    Lightweight Java library for plotting data.

    1.6K starsJavaApache-2.0

More comparisons