Callback function which is used to specify text and other content displayed in cursor result tables.
Receives 3 parameters:
reference to owning chart
generic SolveResult object that contains information about the pointed data
list of SolveResult objects in case of "show-all" behavior
In order to use series specific data properties (e.g. Heatmap sample "intensity"),
you should use type guards to assert the type of the SolveResult:
// Example of using type guard in cursor formatter Chart.setCursorFormatting((chart, hit, hits) => { if (!isHitHeatmap(hit)) returnundefined return [hit.intensity.toFixed(1)] })
Callback function which is used to specify text and other content displayed in cursor result tables. Receives 3 parameters:
SolveResultobject that contains information about the pointed dataSolveResultobjects in case of"show-all"behaviorIn order to use series specific data properties (e.g. Heatmap sample "intensity"), you should use type guards to assert the type of the
SolveResult: