# XChart

> Lightweight Java library for plotting data.

- Category: [Java, Kotlin & Scala visualization libraries](https://awesomedataviz.com/categories/jvm/)
- Website: http://knowm.org/open-source/xchart
- Repository: https://github.com/knowm/XChart
- License: Apache-2.0
- Language: Java
- Status: Active (commits in the last 90 days)
- GitHub stars: 1,596
- Commits in the last 12 months: 307
- Contributors: 60
- Last commit: Jul 31, 2026
- Install (Maven Central): `implementation("org.knowm.xchart:xchart:3.8.8")`

## Overview

XChart is an open-source JVM charting library released under the Apache-2.0 license. Its GitHub repository has 1,596 stars, 398 forks, and 60 contributors. It is actively developed with 307 commits in the last 12 months.

## Alternatives

- [JFreeChart](https://awesomedataviz.com/tools/jfreechart/): 2D chart library for Java applications using Swing, JavaFX or server-side rendering. (1.4K stars)
- [Kandy](https://awesomedataviz.com/tools/kandy/): Kotlin plotting library with a typed DSL, developed by JetBrains. (746 stars)
- [Lets-Plot for Kotlin](https://awesomedataviz.com/tools/lets-plot-for-kotlin/): Grammar of graphics plotting API for Kotlin, built on Lets-Plot. (487 stars)

## Comparisons

- [JFreeChart vs XChart](https://awesomedataviz.com/compare/jfreechart-vs-xchart/)
- [Kandy vs XChart](https://awesomedataviz.com/compare/kandy-vs-xchart/)
- [Lets-Plot for Kotlin vs XChart](https://awesomedataviz.com/compare/lets-plot-for-kotlin-vs-xchart/)

Source: https://awesomedataviz.com/tools/xchart/ · Data updated 2026-10-04 · Content: CC BY 4.0, Awesome Dataviz (https://awesomedataviz.com).
