{"id":18790395,"url":"https://github.com/vega/vega-tooltip","last_synced_at":"2025-10-08T03:56:04.600Z","repository":{"id":4960909,"uuid":"52128009","full_name":"vega/vega-tooltip","owner":"vega","description":"Tooltip Plugin for Vega-Lite","archived":false,"fork":false,"pushed_at":"2025-10-02T07:05:48.000Z","size":14909,"stargazers_count":85,"open_issues_count":15,"forks_count":48,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-10-02T08:24:13.718Z","etag":null,"topics":["tooltip-handler","tooltip-plugin","vega","vega-lite"],"latest_commit_sha":null,"homepage":"http://vega.github.io/vega-tooltip/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vega.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"custom":"https://app.hubspot.com/payments/GyPC972GD9Rt?referrer=PAYMENT_LINK"}},"created_at":"2016-02-20T00:33:03.000Z","updated_at":"2025-10-02T07:05:52.000Z","dependencies_parsed_at":"2023-12-15T20:31:18.641Z","dependency_job_id":"70b202ec-d5d5-44e9-acbf-43d467c79859","html_url":"https://github.com/vega/vega-tooltip","commit_stats":{"total_commits":1106,"total_committers":30,"mean_commits":36.86666666666667,"dds":0.6627486437613019,"last_synced_commit":"d29fd71ddcd1d73929ab9a5a48fc677b34dcd98a"},"previous_names":[],"tags_count":84,"template":false,"template_full_name":null,"purl":"pkg:github/vega/vega-tooltip","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vega%2Fvega-tooltip","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vega%2Fvega-tooltip/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vega%2Fvega-tooltip/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vega%2Fvega-tooltip/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vega","download_url":"https://codeload.github.com/vega/vega-tooltip/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vega%2Fvega-tooltip/sbom","scorecard":{"id":918002,"data":{"date":"2025-08-11","repo":{"name":"github.com/vega/vega-tooltip","commit":"a815afa5f71d01e694ce9e8d8b61abf67d47b8cf"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6,"checks":[{"name":"Code-Review","score":-1,"reason":"Found no human activity in the last 30 changesets","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: topLevel 'pull-requests' permission set to 'read': .github/workflows/check-pr.yml:11","Warn: no topLevel permission defined: .github/workflows/merge-dependabot.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/check-pr.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/vega/vega-tooltip/check-pr.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/merge-dependabot.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/vega/vega-tooltip/merge-dependabot.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/vega/vega-tooltip/test.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/vega/vega-tooltip/test.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/vega/vega-tooltip/test.yml/main?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: github.com/vega/.github/SECURITY.md:1","Info: Found linked content: github.com/vega/.github/SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/vega/.github/SECURITY.md:1","Info: Found text in security policy: github.com/vega/.github/SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T22:13:21.150Z","repository_id":4960909,"created_at":"2025-08-24T22:13:21.150Z","updated_at":"2025-08-24T22:13:21.150Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278886410,"owners_count":26062975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["tooltip-handler","tooltip-plugin","vega","vega-lite"],"created_at":"2024-11-07T21:12:03.180Z","updated_at":"2025-10-08T03:56:04.561Z","avatar_url":"https://github.com/vega.png","language":"TypeScript","funding_links":["https://app.hubspot.com/payments/GyPC972GD9Rt?referrer=PAYMENT_LINK"],"categories":[],"sub_categories":[],"readme":"# Tooltip for Vega \u0026 Vega-Lite\n[![npm version](https://img.shields.io/npm/v/vega-tooltip.svg)](https://www.npmjs.com/package/vega-tooltip)\n[![Build Status](https://github.com/vega/vega-tooltip/workflows/Test/badge.svg)](https://github.com/vega/vega-tooltip/actions)\n[![codecov](https://codecov.io/gh/vega/vega-tooltip/branch/master/graph/badge.svg)](https://codecov.io/gh/vega/vega-tooltip)\n[![](https://data.jsdelivr.com/v1/package/npm/vega-tooltip/badge?style=rounded)](https://www.jsdelivr.com/package/npm/vega-tooltip)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=rounded)](https://github.com/prettier/prettier)\n\nA tooltip plugin for [Vega](http://vega.github.io/vega/) and [Vega-Lite](https://vega.github.io/vega-lite/) visualizations. This plugin implements a [custom tooltip handler](https://vega.github.io/vega/docs/api/view/#view_tooltip) for Vega that uses custom HTML tooltips instead of the HTML [`title` attribute](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/title). Vega Tooltip is installed in the [Vega Editor](https://vega.github.io/editor/).\n\n![demo image](demo.png \"a tooltip for a Vega-Lite scatterplot\")\n\n**Features**\n* Renders nice tooltips for Vega and Vega-Lite charts\n* Supports dark and light theme\n* Renders object-valued tooltips as a table\n* Supports special keys `title` (becomes the title of the tooltip) and `image` (used as the url for an embedded image)\n\n## Demo\n\nhttp://vega.github.io/vega-tooltip/\n\n## Installing\n\nWe recommend using [Vega-Embed](https://github.com/vega/vega-embed), which already comes with this tooltip plugin.\n\nYou can install Vega tooltip directly with `npm install vega-tooltip`.\n\n### Using Vega-tooltip with a CDN\n\nYou can import `vega-tooltip` directly from [`jsDelivr`](https://www.jsdelivr.com/package/npm/vega-tooltip). Replace `[VERSION]` with the version that you want to use.\n\n```html\n\u003c!-- Import Vega 5 \u0026 Vega-Lite 4 (does not have to be from CDN) --\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vega@5\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vega-lite@4\"\u003e\u003c/script\u003e\n\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/vega-tooltip@[VERSION]\"\u003e\u003c/script\u003e\n```\n\n## Usage and APIs\n\nIf you use [Vega-Embed](https://github.com/vega/vega-embed), you **don't need to install Vega Tooltip**! Vega Embed already comes with Vega Tooltip. You can however pass tooltip customizations.\n\n```js\nvegaEmbed(\"#vis\", spec, {tooltip: {theme: 'dark'}})\n  .then(function(result) {\n    // result.view contains the Vega view\n  })\n  .catch(console.error);\n```\n\nIf you want to use a different version of the tooltip handler, you can override the default handler with the handler from Vega Tooltip (and you need to install it separately).\n\n```js\nvar handler = new vegaTooltip.Handler();\nvegaEmbed(\"#vis\", spec, {tooltip: handler.call})\n  .then(function(result) {\n    // result.view contains the Vega view\n  })\n  .catch(console.error);\n```\n\nSee the [API documentation](docs/APIs.md) for details.\n\n## Tutorials\n\n1. [Creating Your Tooltip](docs/creating_your_tooltip.md)\n2. [Customizing Your Tooltip](docs/customizing_your_tooltip.md)\n\n## Run Instructions\n\n1. In the project folder `vega-tooltip`, type command `npm i` to install dependencies.\n2. Then, type `npm run start`. This will build the library and start a web server.\n3. In your browser, navigate to `http://localhost:8000/`, where you can see various Vega-Lite and Vega visualizations with tooltip interaction.\n\n## Publishing\n\nTo make a release, run `npm run release`. The update the website with `npm run deploy:gh`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvega%2Fvega-tooltip","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvega%2Fvega-tooltip","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvega%2Fvega-tooltip/lists"}