MCPcopy Create free account
hub / github.com/chartjs/Chart.js / labelPointStyle

Function labelPointStyle

src/plugins/plugin.tooltip.js:419–426  ·  view source on GitHub ↗
(tooltipItem)

Source from the content-addressed store, hash-verified

417 return this.options.bodyColor;
418 },
419 labelPointStyle(tooltipItem) {
420 const meta = tooltipItem.chart.getDatasetMeta(tooltipItem.datasetIndex);
421 const options = meta.controller.getStyle(tooltipItem.dataIndex);
422 return {
423 pointStyle: options.pointStyle,
424 rotation: options.rotation,
425 };
426 },
427 afterLabel: noop,
428
429 // Args are: (tooltipItems, data)

Callers

nothing calls this directly

Calls 2

getDatasetMetaMethod · 0.80
getStyleMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…