"lint-js": "eslint \"samples/**/*.html\" \"samples/**/*.js\" \"src/**/*.js\" \"test/**/*.js\"",
"lint-md": "markdownlint-cli2 \"**/*.md\" \"**/*.mdx\" \"#**/node_modules\"",
"lint-tsc": "tsc",
- "lint-types": "eslint \"types/**/*.d.ts\" && tsc -p types/tests/",
+ "lint-types": "eslint \"types/**/*.ts\" && tsc -p types/tests/",
"lint": "concurrently \"npm:lint-*\"",
"test": "npm run lint && cross-env NODE_ENV=test karma start --auto-watch --single-run --coverage --grep",
"typedoc": "npx typedoc"
import { Chart } from '../../../index.esm';
Chart.defaults.controllers.bubble.plugins.tooltip.callbacks.label = (item) => {
- const {x, y, _custom: r} = item.parsed;
- return `${item.label}: (${x}, ${y}, ${r})`;
-}
+ const { x, y, _custom: r } = item.parsed;
+ return `${item.label}: (${x}, ${y}, ${r})`;
+};
const chart = new Chart('id', {
type: 'bubble',