{"id":17465045,"url":"https://github.com/erdogant/d3heatmap","last_synced_at":"2025-04-19T20:15:09.082Z","repository":{"id":57417841,"uuid":"298880904","full_name":"erdogant/d3heatmap","owner":"erdogant","description":"d3heatmap is a Python package to create interactive heatmaps based on d3js.","archived":false,"fork":false,"pushed_at":"2023-09-14T16:02:59.000Z","size":1090,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T12:16:06.720Z","etag":null,"topics":["adjacency-matrix","clustering","d3-javascript","d3js","heatmap","interactive","javascript","python"],"latest_commit_sha":null,"homepage":"https://erdogant.github.io/d3heatmap","language":"HTML","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/erdogant.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["erdogant"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2020-09-26T18:59:54.000Z","updated_at":"2025-03-28T16:38:33.000Z","dependencies_parsed_at":"2023-09-23T18:31:16.546Z","dependency_job_id":null,"html_url":"https://github.com/erdogant/d3heatmap","commit_stats":{"total_commits":73,"total_committers":2,"mean_commits":36.5,"dds":0.452054794520548,"last_synced_commit":"d4fa3357acd85951ba9d7e57c8f94bc27bf85934"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fd3heatmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fd3heatmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fd3heatmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/erdogant%2Fd3heatmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/erdogant","download_url":"https://codeload.github.com/erdogant/d3heatmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248710434,"owners_count":21149191,"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":["adjacency-matrix","clustering","d3-javascript","d3js","heatmap","interactive","javascript","python"],"created_at":"2024-10-18T11:08:35.922Z","updated_at":"2025-04-19T20:15:09.064Z","avatar_url":"https://github.com/erdogant.png","language":"HTML","funding_links":["https://github.com/sponsors/erdogant","https://www.buymeacoffee.com/erdogant)--"],"categories":[],"sub_categories":[],"readme":"## This library is since 18-01-2023 fully implemented in [D3Blocks](https://d3blocks.github.io/d3blocks/pages/html/Heatmap.html). This repo will be froozen at v0.2.3 and not updated anymore. Please use heatmap in D3Blocks for updates and further support.\n\n# d3heatmap\n\n[![Project Status](http://www.repostatus.org/badges/latest/moved.svg)](http://www.repostatus.org/#Moved)\n[![Python](https://img.shields.io/pypi/pyversions/d3heatmap)](https://img.shields.io/pypi/pyversions/d3heatmap)\n[![Pypi](https://img.shields.io/pypi/v/d3heatmap)](https://pypi.org/project/d3heatmap/)\n[![Docs](https://img.shields.io/badge/Sphinx-Docs-Green)](https://d3blocks.github.io/d3blocks/pages/html/Heatmap.html)\n[![LOC](https://sloc.xyz/github/erdogant/d3heatmap/?category=code)](https://github.com/erdogant/d3heatmap/)\n[![Downloads](https://static.pepy.tech/personalized-badge/d3heatmap?period=month\u0026units=international_system\u0026left_color=grey\u0026right_color=brightgreen\u0026left_text=PyPI%20downloads/month)](https://pepy.tech/project/d3heatmap)\n[![Downloads](https://static.pepy.tech/personalized-badge/d3heatmap?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=brightgreen\u0026left_text=Downloads)](https://pepy.tech/project/d3heatmap)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/erdogant/d3heatmap/blob/master/LICENSE)\n[![Forks](https://img.shields.io/github/forks/erdogant/d3heatmap.svg)](https://github.com/erdogant/d3heatmap/network)\n[![Issues](https://img.shields.io/github/issues/erdogant/d3heatmap.svg)](https://github.com/erdogant/d3heatmap/issues)\n[![DOI](https://zenodo.org/badge/298880904.svg)](https://zenodo.org/badge/latestdoi/298880904)\n[![Medium](https://img.shields.io/badge/Medium-Blog-green)](https://towardsdatascience.com/d3blocks-the-python-library-to-create-interactive-and-standalone-d3js-charts-3dda98ce97d4)\n[![Donate](https://img.shields.io/badge/Support%20this%20project-grey.svg?logo=github%20sponsors)](https://d3blocks.github.io/d3blocks/pages/html/Documentation.html)\n\u003c!---[![BuyMeCoffee](https://img.shields.io/badge/buymea-coffee-yellow.svg)](https://www.buymeacoffee.com/erdogant)--\u003e\n\u003c!---[![Coffee](https://img.shields.io/badge/coffee-black-grey.svg)](https://erdogant.github.io/donate/?currency=USD\u0026amount=5)--\u003e\n\n\n``d3heatmap`` is a Python package to create interactive heatmaps based on d3js.\n* The **aim** of d3heatmap is to create interactive heatmaps that can be used stand-alone and being visual attractive. \n* This library does not require any additional installation of javascript, or downloads or setting paths to your systems environments. You just need python and pip install this library. There are two main functions to create a heatmap and there are some differences between the two. Read below for more details. Have fun!\n\n\n```\npip install d3blocks\n\n# Import\nfrom d3blocks import D3Blocks\n\n# Initialize\nd3 = D3Blocks()\n\n# Load example data\ndf = d3.import_example('stormofswords')\ndf = d3.vec2adjmat(df['source'], df['target'], weight=df['weight'], symmetric=True)\n\n# Plot\nd3.heatmap(df)\n```\n\n\n### Functionalities\n\n``d3heatmap.matrix``\n * Allows none symetric adjacency matrices.\n * Colormap can be changed.\n * No clustering.\n * round-ish elements.\n\n``d3heatmap.heatmap``\n * Allows Clustering.\n * Colormap is fixed.\n * Advanced cluster coloring. Clusters are colored and within each cluster the color is incremental based on the value.\n * Adjacency matrix must be symetric.\n\n# \n**Star the [D3Blocks](https://d3blocks.github.io/d3blocks/pages/html/Heatmap.html) repo if you like it! ⭐️**\n#\n\n\n#### Installation\n```\npip install d3heatmap\n```\n\n* Alternatively, install d3heatmap from the GitHub source:\n```bash\ngit clone https://github.com/erdogant/d3heatmap.git\ncd d3heatmap\npip install -U .\n```  \n\n#### Import d3heatmap\n\n```python\nfrom d3heatmap import d3heatmap as d3\n```\n\n#### Example 1: plot using the heatmap function\n\n```python\ndf = d3.import_example()\n# Create heatmap\npaths = results = d3.heatmap(df)\n```\n\nKlik on the figure for the interactive example.\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://erdogant.github.io/docs/d3heatmap/d3heatmap.html\"\u003e\n     \u003cimg src=\"https://github.com/erdogant/d3heatmap/blob/master/docs/figs/example_1.png\" width=\"600\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n#### Example 2: plot using the matrix function\n\n```python\ndf = d3.import_example(size=(6,20))\n# Create heatmap\npaths = d3.matrix(df)\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/erdogant/d3heatmap/blob/master/docs/figs/example_2.png\" width=\"600\" /\u003e\n\u003c/p\u003e\n\n\n#### Example 3: plot using the matrix function\n\n```python\n# The dataframe contains more columns then rows. Adjust the size and color differently.\ndf = d3.import_example(size=(6,20))\n# Create heatmap\npaths = d3.matrix(df, fontsize=10, title='Hooray!', description='d3 matrix is created using https://github.com/erdogant/d3heatmap.', path='c:/temp/example/d3_matrix.html', width=600, height=300, cmap='interpolateGreens', vmin=1)\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/erdogant/d3heatmap/blob/master/docs/figs/example_3.png\" width=\"600\" /\u003e\n\u003c/p\u003e\n\n\n#### Example 4: Matrix with parameters changed:\n\n```python\n# The dataframe contains more columns then rows. Adjust the size and color differently.\ndf = d3.import_example(size=(6,20))\n# Create heatmap\npaths = d3.matrix(df, fontsize=10, title='Hooray!', description='d3 matrix is created using https://github.com/erdogant/d3heatmap.', path='c:/temp/example/d3_matrix.html', width=600, height=300, cmap='interpolateGreens', vmin=1)\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/erdogant/d3heatmap/blob/master/docs/figs/example_4.png\" width=\"600\" /\u003e\n\u003c/p\u003e\n\n\n#### Example 4: Comparison heatmap vs matrix:\nThere are quit some differences between the ``heatmap`` vs ``matrix`` functionality.\n\n```python\ndf = d3.import_example()\nresults = d3.heatmap(df, title='d3heatmap with the heatmap function.', path='heatmap.html')\nresults = d3.matrix(df, title='d3heatmap with the matrix function.', cmap='interpolatePRGn', path='matrix.html', width=700, height=700)\n```\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/erdogant/d3heatmap/blob/master/docs/figs/example_5.png\" width=\"600\" /\u003e\n  \u003cimg src=\"https://github.com/erdogant/d3heatmap/blob/master/docs/figs/example_6.png\" width=\"500\" /\u003e\n\u003c/p\u003e\n\n#### Citation\nPlease cite d3heatmap in your publications if this is useful for your research. See right column for citation information.\n\n#### References\n* https://github.com/erdogant/d3heatmap\n* https://d3-graph-gallery.com\n* https://https://d3js.org/\n   \n### Maintainer\n* Erdogan Taskesen, github: [erdogant](https://github.com/erdogant)\n* This work is created and maintained in my free time. If you wish to buy me a \u003ca href=\"https://erdogant.github.io/donate/?currency=USD\u0026amount=5\"\u003eCoffee\u003c/a\u003e for this work, it is very appreciated.\n* Contributions are welcome.\n* Star it if you like it!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fd3heatmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdogant%2Fd3heatmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdogant%2Fd3heatmap/lists"}