MCPcopy
hub / github.com/apache/echarts / formatTooltip

Function formatTooltip

src/component/marker/MarkerModel.ts:205–223  ·  view source on GitHub ↗
(
        dataIndex: number,
        multipleSeries: boolean,
        dataType: string
    )

Source from the content-addressed store, hash-verified

203 }
204
205 formatTooltip(
206 dataIndex: number,
207 multipleSeries: boolean,
208 dataType: string
209 ) {
210 const data = this.getData();
211 const value = this.getRawValue(dataIndex);
212 const itemName = data.getName(dataIndex);
213
214 return createTooltipMarkup('section', {
215 header: this.name,
216 blocks: [createTooltipMarkup('nameValue', {
217 name: itemName,
218 value: value,
219 noName: !itemName,
220 noValue: value == null
221 })]
222 });
223 }
224
225 getData(): SeriesData<this> {
226 return this._data as SeriesData<this>;

Callers

nothing calls this directly

Calls 4

createTooltipMarkupFunction · 0.90
getNameMethod · 0.80
getDataMethod · 0.65
getRawValueMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…