SChartSeriesCrosshairTooltipDrawerProtocol Protocol Reference

Conforms to NSObject
Declared in SChartSeriesCrosshairTooltipDrawerProtocol.h
Availability
Related samples

Overview

Classes implementing this protocol are responsible for drawing a path representing the tooltip’s shape.

Instance Methods

newPathForTooltip:withCurrentTrackedPoint:onChart:trackingSeries:

Provides a path representing the outline of the tooltip.

- (CGPathRef)newPathForTooltip:(SChartSeriesCrosshairTooltip *)tooltip withCurrentTrackedPoint:(CGPoint)point onChart:(ShinobiChart *)chart trackingSeries:(SChartMappedSeries *)series

Parameters

tooltip

The tooltip the path is being drawn for

point

The center point of the datapoint on the canvas that the tooltip is currently tracking

chart

The chart instance for which the tooltip is displaying data

series

The series the crosshair is currently tracking

Return Value

The tooltip’s path

Discussion

This method is called every time SChartSeriesCrosshair’s position is updated.

Declared In

SChartSeriesCrosshairTooltipDrawerProtocol.h