I am generating a dynamic chart (XYLineChart) using jFreeChart and I have a field which is not included in the dataset. The field is generated dynamically. I want to include that in my tooltip. Is there any possibility I can do it ?
Here is the flow of the program:
Create Chart using an empty dataset.
Set chartPanel. (I guess here is the place where we define the TooltipGenerator).
Receive dynamic data from socket.
Add data to the dataset. ( Here is the only place where I have the data which I need to have in my tooltip text).
Refresh Chart.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…