{"id":13701970,"url":"https://github.com/abelheinsbroek/chartjs-plugin-crosshair","last_synced_at":"2026-01-14T02:58:56.569Z","repository":{"id":37431089,"uuid":"136178298","full_name":"AbelHeinsbroek/chartjs-plugin-crosshair","owner":"AbelHeinsbroek","description":"Crosshair plugin for ChartJS","archived":false,"fork":false,"pushed_at":"2024-01-10T22:22:15.000Z","size":1624,"stargazers_count":160,"open_issues_count":73,"forks_count":89,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-11-11T01:07:30.859Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chartjs-plugin-crosshair.netlify.com/samples/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbelHeinsbroek.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2018-06-05T13:02:46.000Z","updated_at":"2025-10-31T13:02:44.000Z","dependencies_parsed_at":"2024-01-14T19:14:10.008Z","dependency_job_id":"f54775c5-733d-4d24-829b-ccd1b25bde0b","html_url":"https://github.com/AbelHeinsbroek/chartjs-plugin-crosshair","commit_stats":{"total_commits":60,"total_committers":6,"mean_commits":10.0,"dds":"0.19999999999999996","last_synced_commit":"df67175e40cc3c860d7b74c2eb6d3bca0f0b494c"},"previous_names":["abelheinsbroek/chartjs-plugin-trace"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/AbelHeinsbroek/chartjs-plugin-crosshair","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbelHeinsbroek%2Fchartjs-plugin-crosshair","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbelHeinsbroek%2Fchartjs-plugin-crosshair/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbelHeinsbroek%2Fchartjs-plugin-crosshair/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbelHeinsbroek%2Fchartjs-plugin-crosshair/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbelHeinsbroek","download_url":"https://codeload.github.com/AbelHeinsbroek/chartjs-plugin-crosshair/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbelHeinsbroek%2Fchartjs-plugin-crosshair/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408799,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2024-08-02T21:00:28.571Z","updated_at":"2026-01-14T02:58:56.549Z","avatar_url":"https://github.com/AbelHeinsbroek.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Features"],"readme":"\n\u003cdiv align=\"center\"\u003e\n    \u003ccentering\u003e\n    \u003cimg src=\"header.png\" width='600px'/\u003e\n    \u003c/centering\u003e\n\u003c/div\u003e\n\n\n[Chart.js](http://www.chartjs.org/) plugin to draw vertical crosshair, zoom, interpolate values and sync chart interactions.\n\nRequires [Chart.js](https://github.com/chartjs/Chart.js/releases) **3.4.0** or later.\n\n## Documentation\n\n- [Installation](https://chartjs-plugin-crosshair.netlify.com/installation)\n- [Options](https://chartjs-plugin-crosshair.netlify.com/options)\n- [Samples](https://chartjs-plugin-crosshair.netlify.com/samples)\n\n## Example\n\n```javascript\nnew Chart(ctx, {\n  // ... data ...\n  options: {\n    // ... other options ...\n    plugins: {\n      tooltip: {\n        mode: 'interpolate',\n        intersect: false\n      },\n      crosshair: {\n        line: {\n          color: '#F66',  // crosshair line color\n          width: 1        // crosshair line width\n        },\n        sync: {\n          enabled: true,            // enable trace line syncing with other charts\n          group: 1,                 // chart group\n          suppressTooltips: false   // suppress tooltips when showing a synced tracer\n        },\n        zoom: {\n          enabled: true,                                      // enable zooming\n          zoomboxBackgroundColor: 'rgba(66,133,244,0.2)',     // background color of zoom box \n          zoomboxBorderColor: '#48F',                         // border color of zoom box\n          zoomButtonText: 'Reset Zoom',                       // reset zoom button text\n          zoomButtonClass: 'reset-zoom',                      // reset zoom button class\n        },\n        callbacks: {\n          beforeZoom: () =\u003e function(start, end) {                  // called before zoom, return false to prevent zoom\n            return true;\n          },\n          afterZoom: () =\u003e function(start, end) {                   // called after zoom\n          }\n        }\n      }\n    }\n  }\n});\n```\n\n## Development\n\nYou first need to install node dependencies (requires [Node.js](https://nodejs.org/)):\n\n    \u003e npm install\n\nThe following commands will then be available from the repository root:\n\n    \u003e gulp build            // build dist files\n    \u003e gulp build --watch    // build and watch for changes\n    \u003e gulp lint             // perform code linting\n    \u003e gulp docs             // generate GitBook documentation (`dist/docs`)\n    \u003e gulp samples          // prepare samples for release (`dist/samples`)\n    \u003e gulp package          // create an archive with dist files and samples\n    \u003e gulp netlify          // prepare Netlify artifacts (`dist/www`)\n\n## License\n\n`chartjs-plugin-crosshair` is available under the [MIT license](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabelheinsbroek%2Fchartjs-plugin-crosshair","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabelheinsbroek%2Fchartjs-plugin-crosshair","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabelheinsbroek%2Fchartjs-plugin-crosshair/lists"}