This was my code:
Code: Select all
JFreeChart chart = ChartFactory.createBarChart(
"Chart Title",
null,
null,
catDataSet,
PlotOrientation.VERTICAL,
false,
false,
false
);
Marker averageMarker = new CategoryMarker(100);
averageMarker.setLabel("Average");
plot.addDomainMarker(averageMarker);
I get a compile-time error:
cannot resolve symbol: CategoryMarker
I checked my imports, and I'm importing the entire plot package:
Code: Select all
import org.jfree.chart.plot.*;
I decided to try and import the import the class explicitly:
Code: Select all
import org.jfree.chart.plot.CategoryMarker
I unzipped the jar file in my lib directory, and found that the class was, in fact, there.
Does anybody have any idea what's going on? Why can't I import this file?