Multiline « ToolTip « JFreeChart Q&A

I have following code barRenderer.setBaseToolTipGenerator(new CategoryToolTipGenerator(){ public String generateToolTip(CategoryDataset dataset, int series, int bar) { return "" + "A" + ""+ "B" + ""; } }); but in browser changes to <html> and is not taking effect. So no line breaks are coming and even html tags are appearing in tooltip