SChartSeriesCrosshairTooltipPositionerProtocol Protocol Reference

Conforms to NSObject
Declared in SChartSeriesCrosshairTooltipPositionerProtocol.h
Availability
Related samples

Overview

Classes implementing this protocol are responsible for positioning the tooltip on the canvas.

Instance Methods

centerOfTooltip:onChart:trackingSeries:

Calculates an appropriate center position for the tooltip.

- (CGPoint)centerOfTooltip:(SChartSeriesCrosshairTooltip *)tooltip onChart:(ShinobiChart *)chart trackingSeries:(SChartMappedSeries *)series

Parameters

tooltip

The tooltip being repositioned

chart

The chart instance for which the tooltip is displaying data - can be used to retrieve information about plot area’s frame for bounds checking

series

The series the crosshair is currently tracking

Return Value

The new center position for the tooltip

Declared In

SChartSeriesCrosshairTooltipPositionerProtocol.h