{"id":21690057,"url":"https://github.com/timdeputter/purescript-apexcharts","last_synced_at":"2025-03-20T12:53:12.152Z","repository":{"id":42002759,"uuid":"257266129","full_name":"timdeputter/purescript-apexcharts","owner":"timdeputter","description":"Purescript bindings for apexcharts.js (https://apexcharts.com)","archived":false,"fork":false,"pushed_at":"2024-04-29T13:15:08.000Z","size":276,"stargazers_count":18,"open_issues_count":0,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-25T13:07:08.195Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/timdeputter.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-20T11:56:25.000Z","updated_at":"2024-07-31T12:11:20.000Z","dependencies_parsed_at":"2024-11-25T17:32:30.351Z","dependency_job_id":"a4a7eb08-ee46-4a28-badf-6608b070104d","html_url":"https://github.com/timdeputter/purescript-apexcharts","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timdeputter%2Fpurescript-apexcharts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timdeputter%2Fpurescript-apexcharts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timdeputter%2Fpurescript-apexcharts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timdeputter%2Fpurescript-apexcharts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timdeputter","download_url":"https://codeload.github.com/timdeputter/purescript-apexcharts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244618183,"owners_count":20482316,"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-25T17:28:52.603Z","updated_at":"2025-03-20T12:53:12.116Z","avatar_url":"https://github.com/timdeputter.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-apexcharts [![GitHub](https://img.shields.io/github/license/timdeputter/purescript-apexcharts)](https://github.com/timdeputter/purescript-apexcharts/blob/master/LICENSE) [\u003cimg src=\"https://pursuit.purescript.org/packages/purescript-apexcharts/badge\" alt=\"purescript-apexcharts on Pursuit\"\u003e \u003c/img\u003e](https://pursuit.purescript.org/packages/purescript-apexcharts)\n\nPurescript bindings for apexcharts.js - \"A modern JavaScript charting library to build interactive charts and visualizations with simple API\" (https://apexcharts.com)\n\n\n## State\n\nBasically all options should work. \nOnly some options that take functions (events, formatters) are missing. PRS welcome!\n\u003c/br\u003e\u003c/br\u003e\n\n## Download and Installation\n\nInstall apexcharts first (https://apexcharts.com/docs/installation/).\n\n```bash\nnpm install apexcharts --save\nbower install --save purescript-apexcharts\n```\n\u003c/br\u003e\n\n## Basic example\n\nThe basic example from the apexcharts.js readme:\n\n```javascript\nvar options = {\n  chart: {\n    type: 'bar'\n  },\n  series: [\n    {\n      name: 'sales',\n      data: [30, 40, 35, 50, 49, 60, 70, 91, 125]\n    }\n  ],\n  xaxis: {\n    categories: [1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999]\n  }\n}\n\nvar chart = new ApexCharts(document.querySelector('#chart'), options)\nchart.render()\n```\n\nThe equivalent in purescript:\n\n```purescript\nlet chart = (\n        chart := (type' := Bar) \n        \u003c\u003e series := [\n          name := \"sales\"\n          \u003c\u003e data' := [30,40,35,50,49,60,70,91,125]\n        ]\n        \u003c\u003e xaxis := (\n          categories := [1991,1992,1993,1994,1995,1996,1997,1998,1999]\n        )\n    )\nin createChart \"#chart\" chart \u003e\u003e= render\n```\n\u003c/br\u003e\n\nMore examples [here](https://github.com/timdeputter/purescript-apexcharts/tree/master/examples).\n\n## Documentation\n\nModule documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-apexcharts).\n\n\n\n## License\n\nCheck [LICENSE](LICENSE) file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimdeputter%2Fpurescript-apexcharts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimdeputter%2Fpurescript-apexcharts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimdeputter%2Fpurescript-apexcharts/lists"}