<?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: Anne-Marie Dufour</title>
    <description>The latest articles on DEV Community by Anne-Marie Dufour (@annemariedufour).</description>
    <link>https://dev.to/annemariedufour</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F850097%2F8153d560-37a9-4944-af3a-64282af47caf.jpg</url>
      <title>DEV Community: Anne-Marie Dufour</title>
      <link>https://dev.to/annemariedufour</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/annemariedufour"/>
    <language>en</language>
    <item>
      <title>How to make your D3.js projects responsive</title>
      <dc:creator>Anne-Marie Dufour</dc:creator>
      <pubDate>Fri, 22 Apr 2022 06:52:00 +0000</pubDate>
      <link>https://dev.to/annemariedufour/how-to-make-your-d3js-projects-responsive-4l07</link>
      <guid>https://dev.to/annemariedufour/how-to-make-your-d3js-projects-responsive-4l07</guid>
      <description>&lt;p&gt;A quick tip to make your D3.js projects responsive.&lt;br&gt;
&lt;br&gt;
1- Set the viewBox attribute of the SVG parent: the first two values to zero, the last two to the width and height of your project, in pixels. It will ensure that the width/height ratio is maintained on all screen sizes.&lt;br&gt;
Omit the width and height attributes since they will give fixed width and height to your project.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;svg viewBox="0 0 700 500"&amp;gt;
  // Your viz goes here
&amp;lt;/svg&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;br&gt;
2- Wrap the SVG parent in a responsive container. &lt;br&gt;
There are many ways to go about it. For simplicity, I used a div element with 100% width and a max-width of 700px that corresponds to the max-width of the page content. Any grid system will also work.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div style="width:100%; max-width:700px;"&amp;gt;
  &amp;lt;svg viewBox="0 0 700 500"&amp;gt;&amp;lt;/svg&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;br&gt;
Hope that helps!&lt;/p&gt;

</description>
      <category>d3js</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Introducing the third edition of D3.js in Action</title>
      <dc:creator>Anne-Marie Dufour</dc:creator>
      <pubDate>Tue, 19 Apr 2022 13:44:40 +0000</pubDate>
      <link>https://dev.to/annemariedufour/introducing-the-third-edition-of-d3js-in-action-4npn</link>
      <guid>https://dev.to/annemariedufour/introducing-the-third-edition-of-d3js-in-action-4npn</guid>
      <description>&lt;p&gt;I’m proud to announce that one of my most important projects so far has reached a huge milestone. As a co-author with Elijah Meeks, I have the honor to be working on the third edition of D3.js in Action, which is now available in Manning’s early access program (MEAP)! 🎉&lt;/p&gt;

&lt;p&gt;Learning D3 for data visualization development can be scary, but once you understand a few key concepts, it actually gets intuitive and fun! Plus, mastering this library is a solid investment because the philosophy behind D3 opens the door to pretty much any web-based visualization you can dream of. If you don’t like to bump your head against the limitations of charting libraries, you’ll love D3.&lt;/p&gt;

&lt;p&gt;In this new edition of D3.js in Action, you’ll learn the fundamental principles of D3 along with hands-on exercises where you’ll build portfolio-ready projects. You’ll also learn how to include D3 in React and Svelte projects, how to make your visualizations interactive, responsive, and much more.&lt;/p&gt;

&lt;p&gt;With Manning’s early access program, you get the first chapters immediately and access to a forum where we’ll answer your questions directly! The later chapters will be progressively released, accompanying your learning pace.&lt;/p&gt;

&lt;p&gt;Oh, and use the code &lt;strong&gt;mldufour2&lt;/strong&gt; to get 50% off. Only valid until April 28th!&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>datascience</category>
      <category>d3</category>
    </item>
  </channel>
</rss>
