CHROMATIC-SYSTEM v1.03_MODULES_PROGRESS_CHART_&_DATA_INPUT_ENGINE

THE CODE & INFORMATION

This code creates an interactive "Progress Chart" dashboard that allows users to visualize progress for three specific web development skills: HTML, CSS, and JavaScript. The interface consists of two main parts: a top section containing number- based input fields where users can type a value between 0 and 100, and a lower section containing visual progress bars that dynamically react to the numbers entered above. It uses a clean, retro-modern aesthetic, leveraging CSS styling for custom progress bar containers, colors, and font styling to create a coherent user interface.

Functionally, the code works by linking the numeric inputs to the visual bars through JavaScript. When a user interacts with an input field (via the oninput event), a function calculates the new width for the corresponding progress bar and updates the text displayed next to it. To ensure reliability, the JavaScript uses a dataMap object that explicitly connects the input IDs to their respective DOM elements (the bars and the percentage labels). Additionally, it includes a safety mechanism that "clamps" the input value, ensuring it always remains between 0 and 100, even if the user tries to type a number outside of that range.

To use this code, simply save it as an .html file (for example, progress.html) and open it in any modern web browser. Once loaded, you will see the three progress indicators. You can immediately begin typing in the number fields labeled HTML, CSS, and JS; as you change the numbers, you will see the colored bars expand or shrink in real-time, and the text labels next to them will update to reflect the exact percentage you provided. It is designed to be plug-and-play, meaning no backend server or external compilation is required to see the changes take effect.

HTML

CSS

JAVASCRIPT