~/projects / XChart.java · 06 of 29
XChart
A lightweight Java library for plotting data, with no required dependencies. The chart on this site's home page is drawn with it.
What it is
XChart turns data into charts in a few lines of Java. It has more than ten chart types, real-time updating, several themes, and export to PNG, SVG, PDF and other formats. It needs nothing beyond the JDK to run.
My part
I started XChart in 2011 because the existing Java charting libraries were heavy and awkward for quick scientific plots. I wrote most of the code and still maintain it.
On this site
The chart below is real XChart output. A small Java program in this site’s repository simulates a memristor, plots the result with XChart and writes an SVG, which the page then animates.