{"id":25254735,"url":"https://github.com/eliasdabbas/dash-aggrid-scales","last_synced_at":"2026-03-16T11:08:23.599Z","repository":{"id":275004902,"uuid":"923538702","full_name":"eliasdabbas/dash-aggrid-scales","owner":"eliasdabbas","description":"Color scales (continuous and categorical) and bar charts for Dash-Ag-Grid","archived":false,"fork":false,"pushed_at":"2025-03-05T23:44:31.000Z","size":212,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-02T18:50:20.191Z","etag":null,"topics":["aggrid","color-scales","color-scheme","data-science","data-visualization","html","plotly-dash","table"],"latest_commit_sha":null,"homepage":"https://dash-aggrid-scales.com","language":"Python","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/eliasdabbas.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":"2025-01-28T12:35:33.000Z","updated_at":"2025-03-12T01:03:56.000Z","dependencies_parsed_at":"2025-01-30T17:38:37.340Z","dependency_job_id":null,"html_url":"https://github.com/eliasdabbas/dash-aggrid-scales","commit_stats":null,"previous_names":["eliasdabbas/dash-aggrid-scales"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eliasdabbas/dash-aggrid-scales","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasdabbas%2Fdash-aggrid-scales","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasdabbas%2Fdash-aggrid-scales/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasdabbas%2Fdash-aggrid-scales/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasdabbas%2Fdash-aggrid-scales/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eliasdabbas","download_url":"https://codeload.github.com/eliasdabbas/dash-aggrid-scales/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eliasdabbas%2Fdash-aggrid-scales/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276064301,"owners_count":25578997,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aggrid","color-scales","color-scheme","data-science","data-visualization","html","plotly-dash","table"],"created_at":"2025-02-12T05:39:27.032Z","updated_at":"2025-09-20T07:36:22.814Z","avatar_url":"https://github.com/eliasdabbas.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dash AgGrid Scales\n\nPlotly color scales for columns in `dash-ag-grid`\n\nThis package provides three main scales to highlight values in AgGrid columns. For consistency, the names use the same conventions use by the `plotly.colors` module:\n\n- sequential\n- qualitative\n- bar\n\n![](grid_with_color_scales.png)\n\n## Installation\n\n```bash\npip install dash-aggrid-scales\n```\n\n## Hello World\n\n```python\nimport dash_aggrid_scales as das\nfrom dash import Dash, html\nfrom dash_ag_grid import AgGrid\nimport plotly.express as px\nmedals = px.data.medals_long().assign(negative=list(range(-5, 4)))\n\napp = Dash()\n\napp.layout = html.Div([\n    AgGrid(\n        rowData=medals.to_dict(\"records\"),\n        columnSize=\"sizeToFit\",\n        style={\"height\": 500},\n        columnDefs=[\n            {\n                \"field\": \"nation\",\n                \"headerName\": \"nation (qualitative)\",\n                \"cellStyle\": {\"styleConditions\": das.qualitative(medals[\"nation\"])},\n            },\n            {\n                \"field\": \"medal\",\n                \"headerName\": \"medal (qualitative)\",\n                \"cellStyle\": {\"styleConditions\": das.qualitative(medals[\"medal\"], \"Safe\")},\n            },\n            {\n                \"field\": \"count\",\n                \"headerName\": \"count (sequential)\",\n                \"cellStyle\": {\"styleConditions\": das.sequential(medals[\"count\"])},\n            },\n            {\n                \"field\": \"count\",\n                \"headerName\": \"count (bar)\",\n                \"cellStyle\": {\"styleConditions\": das.bar(medals[\"count\"])},\n            },\n            {\n                \"field\": \"negative\",\n                \"headerName\": \"random +ve \u0026 -ve values (bar)\",\n                \"cellStyle\": {\"styleConditions\": das.bar(medals[\"negative\"], \"teal\")},\n            },\n        ],\n    )\n])\n\nif __name__ == \"__main__\":\n    app.run(debug=True)\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliasdabbas%2Fdash-aggrid-scales","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feliasdabbas%2Fdash-aggrid-scales","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feliasdabbas%2Fdash-aggrid-scales/lists"}