Multiple datasets and multiple tooltip generators

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
siowling
Posts: 12
Joined: Thu Sep 02, 2004 10:48 am

Multiple datasets and multiple tooltip generators

Post by siowling » Wed Nov 10, 2004 3:15 am

If I have 4 different datasets in my chart, is it possible for me to set a separate tooltip generator for every dataset? How do I do that?

Currently, my tooltip generator only seems to work with the first (primary) dataset.

Thanks,
SiowLing

xiaoqiao
Posts: 6
Joined: Wed Nov 10, 2004 8:32 am
Contact:

Post by xiaoqiao » Wed Nov 10, 2004 9:48 am

yes,sure
plot may have multiple datasets,which is implemented by addSecondaryDataset().At the same time u should use another method addSecondaryRenderer().
so for the secondary renderer,u may do like this:
renderer.setToolTipGenerator();
it's ok

siowling
Posts: 12
Joined: Thu Sep 02, 2004 10:48 am

Post by siowling » Fri Nov 12, 2004 7:33 am

Thanks. It works.

Locked