{"categories":[{"label":"Graphics","url":"https://skillfed.io/packages/category/multimedia-graphics"}],"enrichment":{"capability":"Computes treemap layout rectangles from a list of values using the squarified algorithm, suitable for visualizing hierarchical data as nested rectangles.","skillfed_tags":["treemap-layout","data-visualization","algorithm"],"use_cases":["Generate treemap layouts for visualizing hierarchical data like file system sizes or organizational structures.","Compute rectangle coordinates for custom rendering in web-based visualization frameworks.","Create Matplotlib-based treemap plots with optional padding and custom colors for exploratory data analysis.","Normalize and layout data values to fit within a bounded rectangular space for dashboard displays.","Build interactive treemap visualizations by obtaining rectangle coordinates for further processing."],"what_it_does":"Squarify is a pure Python implementation of the squarified treemap layout algorithm based on the academic work by Bruls, Huizing, and van Wijk. It takes a list of numeric values and a rectangular coordinate space, then computes the positions and dimensions of rectangles whose areas are proportional to the input values. The algorithm aims to produce rectangles with aspect ratios close to square, making treemaps more readable than naive approaches.\n\nThe package provides three main functions: squarify() for basic rectangle computation, padded_squarify() for adding visual gaps between rectangles, and a plot() helper that generates Matplotlib-based visualizations. It also includes normalize_sizes() to scale input values to match the target area. The output is a list of dictionaries, each containing x, y, dx, and dy coordinates suitable for rendering with visualization libraries or custom applications.","worth_installing":"Yes, if you need treemap layout computation. The package has no dependencies, installs easily, and solves a specific algorithmic problem well. The aging maintenance status is not a blocker for a stable, narrow-scope algorithm library, but verify that the implementation meets your precision or performance requirements before adopting it in production."},"id":"squarify","links":{"html":"https://skillfed.io/packages/squarify","md":"https://skillfed.io/packages/squarify.md","pypi":"https://pypi.org/project/squarify/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2024-07-19","license_spdx":null,"license_treatment":"permissive","name":"squarify","python_support":"unspecified","summary":"Pure Python implementation of the squarify treemap layout algorithm"},"popularity":{"monthly_downloads":279662,"position":8118,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.4.4"}
