在jfreechart曲线图上显示数据点

       
/**

**QQ:252574345

**MSN:[email protected]

*/

 

 

 

          XYPlot xyplot=(XYPlot) chart.getPlot();

          //设置数据点可见

          xylinerenderer.setShapesVisible(true);
          xylinerenderer.setShapesFilled(true); 

          Color jeColor = new Color(9, 166, 89);
       
          xyplot.setBackgroundPaint(new Color(231 ,242 ,255  ));

         //设置数据点的颜色
          xylinerenderer.setSeriesPaint(0, jeColor); 
          xylinerenderer.setShape(new java.awt.geom.Ellipse2D.Double(-2, -2, 4, 4));       

 

//new java.awt.geom.Ellipse2D.Double(-2, -2, 4, 4)设置数据点的大小形状位置

  * @param x  the coordinates of the bounding rectangle

  * @ param y the coordinates of the bounding rectangle
  * @param w the width of the rectangle
  * @param h  the height of the rectangle

 

 

你可能感兴趣的:(java,qq,jfreechart)