{"id":13481235,"url":"https://github.com/oecd-cyc/oecd-simple-charts","last_synced_at":"2025-03-27T11:32:02.727Z","repository":{"id":43163062,"uuid":"121961133","full_name":"oecd-cyc/oecd-simple-charts","owner":"oecd-cyc","description":"A lightweight charting tool","archived":false,"fork":false,"pushed_at":"2022-12-09T04:52:50.000Z","size":2660,"stargazers_count":18,"open_issues_count":21,"forks_count":0,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-18T10:51:35.875Z","etag":null,"topics":["chart","visualization"],"latest_commit_sha":null,"homepage":"https://oecd-cyc.github.io/oecd-simple-charts","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oecd-cyc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-18T14:55:24.000Z","updated_at":"2024-10-13T20:57:40.000Z","dependencies_parsed_at":"2023-01-25T11:45:58.570Z","dependency_job_id":null,"html_url":"https://github.com/oecd-cyc/oecd-simple-charts","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/oecd-cyc%2Foecd-simple-charts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oecd-cyc%2Foecd-simple-charts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oecd-cyc%2Foecd-simple-charts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oecd-cyc%2Foecd-simple-charts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oecd-cyc","download_url":"https://codeload.github.com/oecd-cyc/oecd-simple-charts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245836292,"owners_count":20680348,"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":["chart","visualization"],"created_at":"2024-07-31T17:00:49.975Z","updated_at":"2025-03-27T11:32:02.214Z","avatar_url":"https://github.com/oecd-cyc.png","language":"JavaScript","funding_links":[],"categories":["Charts"],"sub_categories":[],"readme":"# OECD Simple Charts\n\nA lightweight chartingtool. Visit the [docs](https://oecd-cyc.github.io/oecd-simple-charts) or checkout the [code](https://github.com/oecd-cyc/oecd-simple-charts).\n\n\u003cimg src=\"https://raw.githubusercontent.com/oecd-cyc/oecd-simple-charts/master/public/images/charts-example.png\" style=\"width:100%; max-width: 960px\"\u003e\n\n## Usage\n\nTo get started, you can either install the library using npm\n\n```\nnpm install oecd-simple-charts\n```\n\nor embed the `bundle.min.js` and `bundle.min.css` files, either downloading them from the [repository](https://github.com/oecd-cyc/oecd-simple-charts) or directly embedding them from a CDN service like [unpkg](https://unpkg.com/oecd-simple-charts/build/oecd-simple-charts.min.js) or [jsDelivr](https://unpkg.com/oecd-simple-charts/build/oecd-simple-charts.min.js).\n\n```html\n\u003cscript src=\"https://unpkg.com/oecd-simple-charts/build/oecd-simple-charts.min.js\"\u003e\u003c/script\u003e\n\u003clink href=\"https://unpkg.com/oecd-simple-charts/build/oecd-simple-charts.min.css\" rel=\"stylesheet\"\u003e\n```\n\nIn order to create a chart you need to add a container DOM node. Then you can start with the configuration of the chart. You can set a title, change the size and color of the elements and add data points. Each chart has an `update` function, that takes an array of new data and updates the visualization.\n\n## Development\n\nClone the repository, install the dependencies, builds the application and starts a webserver with hot loading on [localhost:3000](http://localhost:3000/):\n\n```sh\n$ git clone https://github.com/oecd-cyc/oecd-simple-charts.git\n$ cd oecd-simple-charts\n$ npm install\n$ npm start\n```\n\n## Build\n\nBuilds a minified version of the library in the `build/` folder.\n\n```sh\n$ npm run build\n```\n\n## Testing\n\nRun the functional test-suite located in `test/`:\n\n```sh\n$ npm test\n```\n\nTo run the visual-regression tests, you will first need a running webserver on port 3000 (see [Development](#development)). Then you can start the tests running:\n\n```sh\n$ npm run test:visual\n```\n\nIf the test fails, but you want to keep your changes run:\n\n```sh\n$ npm run test:visual:reference\n```\n\nThis will save new screenshots in the `screenshots/` folder and these will be used as reference to be tested against the next time you run the tests.\n\n## Update documentation\n\nIn order to generate the docs, run:\n\n```sh\n$ npm run docs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foecd-cyc%2Foecd-simple-charts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foecd-cyc%2Foecd-simple-charts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foecd-cyc%2Foecd-simple-charts/lists"}