in src/visualComponent/table/cell/sparkline/dynamic/tooltipComponent.ts [237:271]
private getValueTooltip(pointSet: IDataRepresentationPointSet): IVisualTooltipDataItem {
if (!pointSet
|| !pointSet.settings
|| !pointSet.points
|| !pointSet.points[0]
|| !NumericValueUtils.isValueFinite(pointSet.points[0].value)
) {
return null;
}
const {
name,
settings,
} = pointSet;
const value: number = pointSet.points[0].value;
const formatter: valueFormatter.IValueFormatter = FormattingUtils.getValueFormatter(
settings.displayUnits || value || 0,
undefined,
undefined,
settings.precision,
settings.getFormat(),
);
return {
color: (pointSet.colors && pointSet.colors[0]) || pointSet.color || this.transparentColor,
displayName: name || settings.label,
markerShape: this.getTooltipMarkerShape(TooltipMarkerShapeEnum.circle),
value: FormattingUtils.getFormattedValue(
value,
formatter,
),
};
}