{"id":19937136,"url":"https://github.com/oldj/heatmap.js","last_synced_at":"2025-05-03T14:31:07.887Z","repository":{"id":10762616,"uuid":"13025564","full_name":"oldj/heatmap.js","owner":"oldj","description":null,"archived":false,"fork":false,"pushed_at":"2015-11-11T16:27:04.000Z","size":644,"stargazers_count":23,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-07T16:16:58.652Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/oldj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-23T02:52:19.000Z","updated_at":"2023-05-18T02:33:03.000Z","dependencies_parsed_at":"2022-08-26T11:10:45.281Z","dependency_job_id":null,"html_url":"https://github.com/oldj/heatmap.js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2Fheatmap.js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2Fheatmap.js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2Fheatmap.js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oldj%2Fheatmap.js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oldj","download_url":"https://codeload.github.com/oldj/heatmap.js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252203188,"owners_count":21710904,"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","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-11-12T23:31:07.421Z","updated_at":"2025-05-03T14:31:06.858Z","avatar_url":"https://github.com/oldj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"heatmap.js\n==========\n\n    @author: oldj\n    @blog: http://oldj.net\n\nheatmap.js是一个基于Canvas的热图绘制库。\n\n \n* 版本：1.0\n* 作者：oldj\n* demo：[http://oldj.github.io/heatmap.js/](http://oldj.github.io/heatmap.js/)\n \n## 初始化组件\n \n    var heatmap = new HeatMap(canvas_node, width, height);\n\n## API说明\n \n* *addData(data)*\n \n    添加数据。其中 data 是一个数组，形如：\n \n    [[x1, y1, n1], [x2, y2, n2], [x3, y3, n3], ... ]\n \n    含义为每个坐标以及它对应的权重，比如：\n \n    [[12, 587, 1], [425, 220, 2], [449, 28, 6], ...]\n \n    其中第三位 n 也可以省略，如果省略，则默认为 1，比如：\n \n    [[144, 59, 1], [209, 94, 1], [83, 391, 1], ...]\n \n    等价于：\n \n    [[144, 59], [209, 94], [83, 391], ...]\n \n \n* *render()*\n \n    绘制热图。\n \n* *clear()*\n \n    清空画布。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldj%2Fheatmap.js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foldj%2Fheatmap.js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foldj%2Fheatmap.js/lists"}