This demo illustrates how to plot a mathematical function y = f(x) with JFreeChart. The function is sampled to create a dataset which is then plotted. This isn't ideal - it would be preferable to have a renderer that can plot mathematical functions directly.