{"id":16336490,"url":"https://github.com/justinwoo/purescript-gomtang-basic","last_synced_at":"2026-01-23T13:46:53.867Z","repository":{"id":58237362,"uuid":"121853606","full_name":"justinwoo/purescript-gomtang-basic","owner":"justinwoo","description":"Another wrapper for ECharts using Union to take records of subsets of allowed fields. Based off of the ideas in React-Basic.","archived":false,"fork":false,"pushed_at":"2018-05-27T21:21:56.000Z","size":8,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-19T18:51:48.784Z","etag":null,"topics":["echarts","purescript"],"latest_commit_sha":null,"homepage":"","language":"PureScript","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/justinwoo.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":"2018-02-17T12:29:29.000Z","updated_at":"2018-06-11T07:20:13.000Z","dependencies_parsed_at":"2022-08-30T22:30:55.898Z","dependency_job_id":null,"html_url":"https://github.com/justinwoo/purescript-gomtang-basic","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/justinwoo/purescript-gomtang-basic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-gomtang-basic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-gomtang-basic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-gomtang-basic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-gomtang-basic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/justinwoo","download_url":"https://codeload.github.com/justinwoo/purescript-gomtang-basic/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/justinwoo%2Fpurescript-gomtang-basic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28693331,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T11:01:27.039Z","status":"ssl_error","status_checked_at":"2026-01-23T11:00:26.909Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["echarts","purescript"],"created_at":"2024-10-10T23:44:21.430Z","updated_at":"2026-01-23T13:46:53.837Z","avatar_url":"https://github.com/justinwoo.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PureScript-Gomtang-Basic\n\nAnother wrapper for [ECharts](http://echarts.baidu.com/) using `Union` to take records of subsets of allowed fields. Based off of the ideas in [React-Basic](https://github.com/lumihq/purescript-react-basic).\n\nNamed for the Korean soup [\"Gomtang\"](https://en.wikipedia.org/wiki/Gomguk) and the Union-based approach \"-basic\".\n\n![](https://i.imgur.com/qHhWz11.jpg)\n\nMore advanced uses of ECharts can be accomplished with [PureScript-ECharts](https://github.com/slamdata/purescript-echarts/).\n\n## Example\n\n```hs\nmain = do\n  main_\n     \u003c- getElementById (ElementId \"main\")\n    \u003c\u003c\u003c htmlDocumentToNonElementParentNode\n    =\u003c\u003c document\n    =\u003c\u003c window\n  case main_ of\n    Nothing -\u003e\n      log \"could not find 'main' element\"\n    Just ele -\u003e do\n      chart \u003c- makeChart ele\n      setOption option chart\n      log \"started\"\n  where\n    option =\n      { title\n      , xAxis\n      , yAxis\n      , series\n      }\n    title = makeTitle { text: \"Bar Example\" }\n    xAxis = makeXAxis\n      { data:\n          [ \"shirt\"\n          , \"cardigan\"\n          , \"chiffon\"\n          , \"pants\"\n          , \"heels\"\n          , \"socks\"\n          ]\n      }\n    yAxis = makeYAxis {}\n    series = [ seriesOption ]\n    seriesOption = makeBarSeries\n      { name: \"sales\"\n      , data: [5.0, 20.0, 36.0, 10.0, 10.0, 20.0]\n      }\n```\n\nLooks like this:\n\n![](https://i.imgur.com/vvgL2lW.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-gomtang-basic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjustinwoo%2Fpurescript-gomtang-basic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjustinwoo%2Fpurescript-gomtang-basic/lists"}