How do I enable the popup when long pressing on a series?


#1

I am trying to switch the tooltip on when I tap and hold a series. Is there a way to do that?

Thanks
Fros


#2

Hi, 

You have to enable crosshair for your series :

SChartLineSeries * series = [[[SChartLineSeries alloc] init] autorelease];
    series.crosshairEnabled = YES;

then choose your tooltip to be shown on the chart (use the default one provided by the framework) :

[chart.crosshair setDefaultTooltip];

You can also, define your own tooltip class :


#3

That’s exactly what I was looking for. Thnx!