{"version":"1.0","type":"rich","title":"D3.js - Barchart for counting characters in text","description":"This example visualizes character frequency in a text area as a horizontally oriented bar chart that updates dynamically with each keystroke or paste. It counts all characters, standardizing whitespace variants to a single \"\\\\s\" label, and color-codes bars by category: lowercase, uppercase, numbers, whitespace, and other symbols. Built with D3 v7, the chart uses `d3.scaleLinear` and `d3.scaleBand` for scaling, `d3.axisTop` and `d3.axisLeft` for ticks, and `selection.join` with transitions to animate bar height and position changes. The source text is derived from Nick Morgan's JavaScript Crash Course, 2024.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/5b5b0313d02844a0b654731184aaf1b0?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}