0

I have a question that is there any feature available in JFreeChart to drag and drop the points within Chart. I want to move the chart point and generate the straight line between new points.

Thanks

Suleman Jamil
  • 43
  • 1
  • 7

1 Answers1

1

No, a JFreeChart is not a JComponent; you can transfer the chart as a whole, but not individual component entities. Alternatively, you can combine the two approaches shown below "to move the chart point and generate the straight line between new points."

  1. Move a chart point using an adjacent component such Slider, as shown here.

    slider image

  2. Connect the points in an XY line chart, as shown here, or plot the corresponding regression line, as shown here.

    regression image

Community
  • 1
  • 1
trashgod
  • 203,806
  • 29
  • 246
  • 1,045