<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Amina Nasser</title>
    <description>The latest articles on DEV Community by Amina Nasser (@aminanasser).</description>
    <link>https://dev.to/aminanasser</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3681110%2F635504d7-8ed7-4039-8ffd-d456a60928b6.png</url>
      <title>DEV Community: Amina Nasser</title>
      <link>https://dev.to/aminanasser</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aminanasser"/>
    <language>en</language>
    <item>
      <title>Build Screen Reader Accessible Flowcharts with D3.js</title>
      <dc:creator>Amina Nasser</dc:creator>
      <pubDate>Sat, 05 Dec 2026 04:10:42 +0000</pubDate>
      <link>https://dev.to/aminanasser/build-screen-reader-accessible-flowcharts-with-d3js-4cfk</link>
      <guid>https://dev.to/aminanasser/build-screen-reader-accessible-flowcharts-with-d3js-4cfk</guid>
      <description>&lt;p&gt;When you search for a “flowchart online free,” you often get tools that care mostly about visual polish. They let you drag, drop, and export a nice PNG or PDF. But as I covered before with &lt;a href="https://dev.to/fossheim/how-to-create-a-screen-reader-accessible-graph-like-apple-s-with-d3-js-18c9"&gt;Apple’s accessible health graphs&lt;/a&gt;, a data visualization that is only visual is not complete. In 2026, web diagrams need more than static images. Today I’ll show how to create a flowchart that works for keyboard users and screen reader users, not just mouse users.&lt;/p&gt;

&lt;p&gt;If you need to sketch the tree before coding, &lt;a href="https://halsion.ai/library/diagram?hl_campaign=blog-blg-beyond-static-shapes-how-to-build-screen-reader-devto" rel="noopener noreferrer"&gt;Halsion Diagram’s free flowchart editor&lt;/a&gt; opens a browser-based diagram editor with nothing to install. Its shapes and connectors stay attached as you rearrange the page, and you can ask the built-in agent to connect flows or tidy the layout. Treat it as a planning surface: the semantics and ARIA still belong in code, as in the steps below. You can also use &lt;a href="https://halsion.ai/library/diagram?hl_campaign=blog-blg-beyond-static-shapes-how-to-build-screen-reader-devto" rel="noopener noreferrer"&gt;Halsion Diagram’s flowchart online free planner&lt;/a&gt; to map the node order before you write any D3.&lt;/p&gt;

&lt;h2&gt;
  
  
  The Problem with Traditional Flowcharts
&lt;/h2&gt;

&lt;p&gt;Most flowchart tools treat diagrams as a flat canvas. When you export that canvas, the semantic relationship between a “Decision Node” and a “Process Node” disappears. A screen reader gets an image with, at best, a generic &lt;code&gt;alt&lt;/code&gt; text like “Flowchart of the onboarding process.” To fix this, treat flowcharts as &lt;strong&gt;navigable trees&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fosxx5txqa6j00hmia7cx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fosxx5txqa6j00hmia7cx.png" alt="A screenshot of a flowchart being inspected in Chrome DevTools, highlighting the SVG elements and ARIA labels." width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Inspecting the DOM structure of an accessible SVG flowchart.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 1: Semantic SVG Structure
&lt;/h2&gt;

&lt;p&gt;Instead of only drawing shapes, wrap SVG elements in semantic containers. Each node should be a group (&lt;code&gt;&amp;lt;g&amp;gt;&lt;/code&gt;) with a role of &lt;code&gt;graphics-symbol&lt;/code&gt; or &lt;code&gt;button&lt;/code&gt;, depending on interactivity.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;node&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;svg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'g'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;attr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'role'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'group'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;attr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'aria-roledescription'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s1"&gt;'flowchart node'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;attr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'aria-label'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`${d.type}: ${d.text}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Step 2: Keyboard Navigation
&lt;/h2&gt;

&lt;p&gt;A visual user follows arrows. A keyboard user should be able to &lt;code&gt;Tab&lt;/code&gt; through nodes in a logical order. Using D3.js to manage the data join lets you keep DOM order aligned with the diagram’s logical flow.&lt;/p&gt;

&lt;p&gt;Focus management matters too. When a user selects a node, focus should move there, and a screen reader should announce connections, such as “Node A leads to Node B and Node C.”&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs8qe09flmtqz9kmm2lof.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fs8qe09flmtqz9kmm2lof.png" alt="A diagram showing the tab order of a flowchart, with numbered circles indicating the sequence from Start to End." width="800" height="533"&gt;&lt;/a&gt;&lt;br&gt;
&lt;em&gt;Mapping the logical tab order for keyboard navigation.&lt;/em&gt;&lt;/p&gt;
&lt;h2&gt;
  
  
  Step 3: Descriptive Connectors
&lt;/h2&gt;

&lt;p&gt;The lines between nodes are often skipped in accessibility audits, but they hold the flowchart’s logic. With &lt;code&gt;aria-describedby&lt;/code&gt;, you can link a node to its outgoing paths.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Giving the path an ID so it can be referenced&lt;/span&gt;
&lt;span class="n"&gt;svg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;append&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'path'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;attr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'id'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`edge-${d.id}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
  &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;attr&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'aria-label'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;d&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="sb"&gt;`leads to ${d.target.name}`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Making It Free and Open
&lt;/h2&gt;

&lt;p&gt;Building accessible tools with D3.js means you are not locked into a proprietary ecosystem. You can create a “flowchart online free” tool on GitHub Pages that offers a better experience than many paid enterprise solutions. By using the &lt;code&gt;Accessibility Object Model (AOM)&lt;/code&gt; and modern D3 techniques, diagrams built in 2026 can be inclusive by default.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Data visualization is communication. If your flowchart does not communicate to a blind or low-vision user, it is not doing its job. Next time you look for a flowchart tool, do not just look for “free”—look for “accessible.”&lt;/p&gt;

&lt;p&gt;If you want the full source code for this accessible flowchart component, check out my repository below.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;What challenges have you faced when making complex SVG diagrams accessible? Let’s discuss in the comments.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>d3</category>
      <category>javascript</category>
      <category>flowchart</category>
      <category>accessible</category>
    </item>
  </channel>
</rss>
