I am using SpiderWebPlot from JFreeChart to create a chart. But what I want to have is clues with meanings. I found that I should set the StandardCategoryTooltipGenerator to the plot, but this does not seem to make sense. Here is my sample code:
private JFreeChart prepareChart() { Random rnd = new java.util.Random(); DefaultCategoryDataset dataSet = new DefaultCategoryDataset(); String rowKey = "Osobnik"; dataSet.addValue(rnd.nextInt(20), rowKey, "BLUFF"); dataSet.addValue(rnd.nextInt(20), rowKey, "CALL"); dataSet.addValue(rnd.nextInt(20), rowKey, "CHECK"); dataSet.addValue(rnd.nextInt(20), rowKey, "FOLD"); dataSet.addValue(rnd.nextInt(20), rowKey, "RAISE"); SpiderWebPlot plot = new SpiderWebPlot(dataSet); // CategoryToolTipGenerator generator = new // StandardCategoryToolTipGenerator(); // generator.generateToolTip(dataSet, 0, 1); plot.setToolTipGenerator(new StandardCategoryToolTipGenerator()); plot.setStartAngle(54D); plot.setInteriorGap(0.40000000000000002D); plot.setToolTipGenerator(new StandardCategoryToolTipGenerator()); JFreeChart chart = new JFreeChart(plot); return chart; }
Here is an example of what I'm trying to accomplish. 

source share