I am adding tooltip to Box and Whisker plot.
final BoxAndWhiskerRenderer renderer = new BoxAndWhiskerRenderer();
String tooltipformat = "Max: {5}\nQ3: {7}\nQ1: {6}\nMin: {4}\nMean: {2}\nMedian: {3}";
renderer.setBaseToolTipGenerator(new BoxAndWhiskerToolTipGenerator(tooltipformat,NumberFormat.getNumberInstance()));
I get the result below.
Instead of getting the tooltip label in a column, I got it in a row. Why does the \n is useless?