Hi John,
You would need to provide custom tooltips for every data point of the line layer. You can use an empty string if a data point has no tooltip.
A simple hard coded example is like:
// The text you want to use as tooltips for the data points
const char* myToolTip[] = {"aaa", "bbb", "ccc", "ddd};
LineLayer *layer = c->addLineLayer(....);
// Add the tooltips you want to use as an extra field
layer->addExtraField(StringArray(myToolTip, 4));
// Use the extra field as tooltips
layer->setHTMLImageMap("", "", "title='{field0}'");
Best Regards
Peter Kwan |