{"id":18331582,"url":"https://github.com/yagolopez/webtask-charts","last_synced_at":"2026-04-30T16:34:09.545Z","repository":{"id":82896621,"uuid":"116478745","full_name":"YagoLopez/webtask-charts","owner":"YagoLopez","description":"Webtask servless code for responsive chart creation","archived":false,"fork":false,"pushed_at":"2018-01-16T20:45:43.000Z","size":5643,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-22T11:41:01.454Z","etag":null,"topics":["auth0","charts","frappe","node","servless","webtask"],"latest_commit_sha":null,"homepage":"","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/YagoLopez.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-06T11:50:15.000Z","updated_at":"2018-01-06T22:25:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"4b6ab8d7-419a-4392-818f-c956ed531560","html_url":"https://github.com/YagoLopez/webtask-charts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/YagoLopez/webtask-charts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YagoLopez%2Fwebtask-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YagoLopez%2Fwebtask-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YagoLopez%2Fwebtask-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YagoLopez%2Fwebtask-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YagoLopez","download_url":"https://codeload.github.com/YagoLopez/webtask-charts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YagoLopez%2Fwebtask-charts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32470879,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["auth0","charts","frappe","node","servless","webtask"],"created_at":"2024-11-05T19:33:35.520Z","updated_at":"2026-04-30T16:34:09.522Z","avatar_url":"https://github.com/YagoLopez.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Chart Webtask\n\n\n\n- Example of servless code running on https://webtask.io\n\n\n- Webtask that generates responsive charts using \u003ca href=\"https://frappe.github.io/charts/\" target=\"_blank\"\u003eFrappé Charts\u003c/a\u003e library\n\n\n\n### End points:\n\n------\n\n- **url**: `/`\n- **method**: GET\n- [returns initial screen with information about the webtask](https://wt-26c8d8dafc4cb18db903554c4e796c40-0.run.webtask.io/chart)\n\n------\n\n- **url**: `/demo`\n\n- **method** GET\n\n- returns a demo of a default chart\n\n- This route accepts the query parameter: `chartType`\n\n- The query parameter `chartType` can have the following values: `bar, line, scatter, pie, percentage`\n\n\n------\n\n- **url**: `/post`\n- **method**: POST\n- The user can post data to this url and gets a chart in return\n- This route also accept `chartType` as a parameter with the before mentioned values\n\n------\n\n- **url**: `/restricted`\n- **method**: GET\n- This is a example of route that needs authorization to access\n\n------\n\n\n\n### Chart data format:\n\n```javascript\n{ \n  \"labels\": string[], \n  \"datasets\": [\n    {\n      \"title\": string, \n      \"values\": number[]\n    }\n  ]\n}\n```\n\nFor example, to get a chart from user data, send a **POST** request to the webtask url adding `/post` to the path with the following data in the request body:\n\n```json\n{\n  \"labels\": [\"12am-3am\", \"3am-6am\", \"6am-9am\", \"9am-12pm\",\n    \"12pm-3pm\", \"3pm-6pm\", \"6pm-9pm\", \"9pm-12am\"],\n\n  \"datasets\": [\n    {\n      \"title\": \"Some Data\",\n      \"values\": [25, 40, 30, 35, 8, 52, 17, -4]\n    },\n    {\n      \"title\": \"Another Set\",\n      \"values\": [25, 50, -10, 15, 18, 32, 27, 14]\n    },\n    {\n      \"title\": \"Yet Another\",\n      \"values\": [15, 20, -3, -15, 58, 12, -17, 37]\n    }\n  ]\n}\n```\n\n\n\n\u003cp align=\"center\"\u003eDeveloped by Yago Lopez\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagolopez%2Fwebtask-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyagolopez%2Fwebtask-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyagolopez%2Fwebtask-charts/lists"}