jfreechart xydotrenderer tooltip not working
===

i am plotting using jfreechart. By Default the XYPlotRenderer is a LineAndShare renderer and shows the tooltips. If i change it to a XYPlot Renderer, the tooltips disappear. Am i missing anything? Here is the code snippet

        JFreeChart chart = ChartFactory.createTimeSeriesChart(" Test Prices","time","price",dataset,true,true,false);

        XYPlot plot = (XYPlot)chart.getPlot();
        XYDotRenderer renderer = new XYDotRenderer();
        renderer.setDotHeight(10);
        renderer.setDotWidth(10);
        renderer.setLegendItemToolTipGenerator(new StandardXYSeriesLabelGenerator("ToolTip {0}"));
        plot.setRenderer(renderer);
