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: 307 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 307
Contributors
30 60
Forks
672 398
Show data as a table
JFreeChart vs XChart by the numbers
MetricJFreeChartXChart
GitHub stars1,3911,596
Commits, last 12 months0307
Contributors3060
Forks672398

Development activity

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

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

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 issues12648
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