title: How to draw a linechart on click in JFreeChart?
body: <p>I am able to draw LineChart using JFreeChart. I would like to know how to draw linechart with legends. The place where I click should be dynamaically updated in the JFreeChart.</p>
  
  <p>I have mentioned a image here to explain what I Mean.
  In the Image I am able draw the black line what I want is the red line to be drawn on click. Can anybody suggest me something related to this?</p>
  
  <p>Thanks in advance</p>
  
  <p><a href="https://i.stack.imgur.com/ZWvJ5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZWvJ5.png" alt="enter image description here"></a></p>