{"id":13671578,"url":"https://github.com/Shaman05/wxCharts","last_synced_at":"2025-04-27T18:31:26.894Z","repository":{"id":143246896,"uuid":"78381993","full_name":"Shaman05/wxCharts","owner":"Shaman05","description":"微信小程序中的股票分时图、K线图","archived":false,"fork":false,"pushed_at":"2017-08-18T06:24:11.000Z","size":3012,"stargazers_count":476,"open_issues_count":3,"forks_count":138,"subscribers_count":29,"default_branch":"master","last_synced_at":"2024-11-11T09:43:49.795Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shaman05.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-01-09T01:13:49.000Z","updated_at":"2024-07-27T14:12:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"d94d55cd-4e0e-45bb-b3d8-c17d751f575d","html_url":"https://github.com/Shaman05/wxCharts","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/Shaman05%2FwxCharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaman05%2FwxCharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaman05%2FwxCharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shaman05%2FwxCharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shaman05","download_url":"https://codeload.github.com/Shaman05/wxCharts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251187185,"owners_count":21549597,"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-08-02T09:01:13.707Z","updated_at":"2025-04-27T18:31:26.194Z","avatar_url":"https://github.com/Shaman05.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# wxCharts\n微信小程序中的股票分时图、K线图\n\n## 说明\n\n* 本示例K线交易量（底部柱子）的颜色变化规则为：当前现价（收盘价） - 前一条现价（收盘价） 决定的，大于等于0为红（涨），小于0为绿（跌）。这里可能有的计算规则是以交易量来计算的。\n* 数据为真实接口数据，处理后存储在模块里。由于使用者不同，接口数据格式肯定有不同，所以绘前的metadata1()和metadata2()方法为数据转化接口。\n* js设置的canvas大小实际上是以px为单位的，100%宽度的可设置'auto'，如页面中要指定canvas大小，则在js里需按规则先计算绘图的canvas大小。具体规则可以参考官方文档：[WXSS尺寸单位](https://mp.weixin.qq.com/debug/wxadoc/dev/framework/view/wxss.html?t=2017112)\n* 正在施工中：在图上手势移动显示坐标线和数据明细。\n\n\n## 文档\n\n配置文档参考：[wiki](https://github.com/Shaman05/wxCharts/wiki)\n\n\n## 效果展示\n\n![image](https://github.com/Shaman05/wxCharts/blob/master/images/fs.png)\n![image](https://github.com/Shaman05/wxCharts/blob/master/images/wr.png)\n![image](https://github.com/Shaman05/wxCharts/blob/master/images/kll.png)\n![image](https://github.com/Shaman05/wxCharts/blob/master/images/fsd.gif)\n\n## 手势坐标(演示效果)\n\n![image](https://github.com/Shaman05/wxCharts/blob/master/images/axis-show.gif)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShaman05%2FwxCharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FShaman05%2FwxCharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FShaman05%2FwxCharts/lists"}