JFreechart color square grid on XY plot

2019-08-01 03:06发布

问题:

Is it possible to assign different colors to different grid squares on an XYplot in jfreechart? I have a chart whose grids I want to assign different values and want to assign colors based on these values Thanks How this can be done on an XYSeriesCollection for XYSeries?

回答1:

Yes, among the JFreeChart Samples, XYTaskDatasetDemo2 and XYBlockChartDemo[1-3] are examples.