Dynamic tool tip generator - Jfreechart

后端 未结 2 446
终归单人心
终归单人心 2021-01-15 05:14

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

2条回答
  •  半阙折子戏
    2021-01-15 05:36

    The name to be displayed is not included anywhere in the dataset.

    As shown here for a custom XYItemLabelGenerator, you can extend a suitable dataset, e.g. AbstractXYDataset, to include the required information and access it from your implementation of XYToolTipGenerator.

提交回复
热议问题