{"id":13936834,"url":"https://github.com/D3xterjs/pydexter","last_synced_at":"2025-07-19T22:32:38.418Z","repository":{"id":215185350,"uuid":"61153391","full_name":"D3xterjs/pydexter","owner":"D3xterjs","description":"Simple plotting for Python. Python wrapper for D3xter - render charts in the browser with simple Python syntax.","archived":false,"fork":false,"pushed_at":"2018-05-19T15:21:50.000Z","size":232,"stargazers_count":31,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-08T23:24:33.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://d3xterjs.github.io/","language":"Python","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/D3xterjs.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":"2016-06-14T20:25:21.000Z","updated_at":"2024-04-08T01:13:19.000Z","dependencies_parsed_at":"2024-01-06T13:09:14.587Z","dependency_job_id":null,"html_url":"https://github.com/D3xterjs/pydexter","commit_stats":null,"previous_names":["d3xterjs/pydexter"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3xterjs%2Fpydexter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3xterjs%2Fpydexter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3xterjs%2Fpydexter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/D3xterjs%2Fpydexter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/D3xterjs","download_url":"https://codeload.github.com/D3xterjs/pydexter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226693899,"owners_count":17667757,"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-07T23:03:02.385Z","updated_at":"2024-11-27T05:30:35.481Z","avatar_url":"https://github.com/D3xterjs.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":["General-Purpose Machine Learning"],"readme":"# PyDexter\n\nSimple plotting for Python. Python wrapper for D3xter - render charts in the browser with simple Python syntax.\n\n![Examples](https://raw.githubusercontent.com/D3xterjs/pydexter/master/examples.png)\n\n## Setup\n\n```\n$ pip install PyDexter\n$ python\n\u003e\u003e\u003e from PyDexter import PyDexter\n\u003e\u003e\u003e pydex = PyDexter()\n```\n\n## API \u0026 Examples\n\n### Histogram\n\n```python\nimport numpy as np\n\nnums = np.random.rand(1000)\npydex.hist(nums)\n```\n\n### Scatter\n\n```python\nimport numpy as np\nx = np.random.rand(100)\ny = x * 2\n\npydex.scatter(x)\n\n# or\n\npydex.scatter(x, y)\n```\n\n### Plot\n\n```python\nimport numpy as np\n\npydex.plot({\n  'labels': ['some points', 'a line'],\n  'datasets': [\n    {\n      'x': list(range(100)),\n      'y': np.random.rand(100),\n    },\n    {\n      'x': [0, 99],\n      'y': [0, 1],\n      'color': 'black',\n      'line': 'true'\n    }\n  ]\n})\n```\n\n### Pie\n\n```python\npydex.pie({\n  'values': [1, 2, 3, 4],\n  'labels': ['a', 'b', 'c', 'd']\n})\n```\n\n### Timeline\n\n```python\npydex.timeline([\n  { 'date': '1914-07-28', 'label': 'WW1' },\n  { 'date': '1939', 'label': 'WW2' },\n  { 'date': '1950-01-01', 'label': 'The Fifties'},\n  { 'date': '1950-01-01', 'label': 'A Date Collision'},\n])\n```\n\n### Bar Chart\n\n```python\npydex.bar({\n  'labels': [\"A\", \"B\", \"C\"],\n  'groups': [\"first\", \"second\", \"third\"],\n  'datasets': [\n    {\n      'values': [1, 2, 3],\n      'color': 'red'\n    },\n    {\n      'values': [4, 3, 1],\n      'color': 'blue'\n    },\n    {\n      'values': [2, 2, 5],\n    }\n  ]\n})\n```\n\n### Configuration\n\n```python\npydex.configure({\n  'height': 500,\n  'width': 700,\n  'title': 'My First Chart',\n  'xLab': 'x-axis label',\n  'yLab': 'y-axis label'\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FD3xterjs%2Fpydexter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FD3xterjs%2Fpydexter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FD3xterjs%2Fpydexter/lists"}