<?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: Soundar</title>
    <description>The latest articles on DEV Community by Soundar (@soundar24).</description>
    <link>https://dev.to/soundar24</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%2F1080929%2F3b7506c5-ebc4-4fee-8e39-5e1c6672c67d.jpeg</url>
      <title>DEV Community: Soundar</title>
      <link>https://dev.to/soundar24</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/soundar24"/>
    <language>en</language>
    <item>
      <title>How many &lt;div&gt; elements are needed to create the Chart component?</title>
      <dc:creator>Soundar</dc:creator>
      <pubDate>Thu, 11 May 2023 18:50:53 +0000</pubDate>
      <link>https://dev.to/soundar24/how-many-elements-are-needed-to-create-the-chart-component-15l</link>
      <guid>https://dev.to/soundar24/how-many-elements-are-needed-to-create-the-chart-component-15l</guid>
      <description>&lt;p&gt;Hello Frontend folks! This question might be a little weird to you because you might have seen many Chart components that may be built with SVG or Canvas rendering.&lt;/p&gt;

&lt;p&gt;So here is the question: First, is it possible to create a Chart component using a div element with CSS rendering? If so, then how many div elements are needed?&lt;/p&gt;

&lt;p&gt;Okay, if you said more than 1, then this post might be curious to you. Yes, because I have created a set of Chart components including Line, Bar and Area chart with a single &lt;code&gt;&amp;lt;div&amp;gt;&lt;/code&gt; element alone.&lt;/p&gt;

&lt;p&gt;Please have a look at the &lt;strong&gt;SingleDivUI&lt;/strong&gt; library:&lt;br&gt;
&lt;a href="https://singledivui.com/"&gt;https://singledivui.com/&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Why?
&lt;/h2&gt;

&lt;p&gt;While I try to explore the possibilities of CSS, I just end up with this. Not only a simple Chart, it also has a lot of options with more customization, again all done inside a single div. If you are more interested in this, then please check out the demos section:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://singledivui.com/demos/line-chart/basic"&gt;https://singledivui.com/demos/line-chart/basic&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  GitHub
&lt;/h2&gt;

&lt;p&gt;I wish you to please look into this and give your thoughts and suggestions. If you like this, then &lt;strong&gt;give a Star on GitHub&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/soundar24/singledivui"&gt;https://github.com/soundar24/singledivui&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Screenshot
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--DcWSICJJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6w768a0dv5o85m03896.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--DcWSICJJ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o6w768a0dv5o85m03896.png" alt="simple chart component built with single div element" width="800" height="153"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Happy coding :-) cheers…&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>opensource</category>
      <category>css</category>
      <category>frontend</category>
    </item>
  </channel>
</rss>
