<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Heyjin.K; on Medium]]></title>
        <description><![CDATA[Stories by Heyjin.K; on Medium]]></description>
        <link>https://medium.com/@heyjinkim?source=rss-40cf15ca5d57------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6ig9cI6LG9LQO-3Gimn8fw.png</url>
            <title>Stories by Heyjin.K; on Medium</title>
            <link>https://medium.com/@heyjinkim?source=rss-40cf15ca5d57------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 05:33:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@heyjinkim/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How I use Storybook]]></title>
            <link>https://medium.com/@heyjinkim/how-i-use-storybook-388d8718465?source=rss-40cf15ca5d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/388d8718465</guid>
            <category><![CDATA[storybook]]></category>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[frontend-development]]></category>
            <category><![CDATA[product-development]]></category>
            <dc:creator><![CDATA[Heyjin.K;]]></dc:creator>
            <pubDate>Tue, 28 Mar 2023 13:07:10 GMT</pubDate>
            <atom:updated>2023-03-31T11:48:15.679Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*sc-blGveZRMzwtn5uGsyHg.png" /><figcaption>via <a href="https://storybook.js.org/">storybook</a></figcaption></figure><p>There’re many ways of using <a href="https://storybook.js.org/">Storybook</a> in UI development lifecycle but in this post, I’ll share my experience on how I use Storybook as a frontend engineer.</p><h3>Why Storybook</h3><h4>Focus on UI Development</h4><p>When developing UI components and pages, you may need to run whole application and backend services on your dev environment depending on the architecture. This slows down both frontend and backend engineers as well as team’s workflow in agile (sprint) process.</p><p>I chose to use Storybook for UI (frontend) development to resolve the issue.</p><p>Storybook allows you to <a href="https://storybook.js.org/docs/react/get-started/why-storybook#the-solution">build UIs in isolation</a> without running the whole application. You don’t even need a network in order to run Storybook on your dev environment. So you can focus on *UI development* rather than other things while also saving time.</p><h4>Publish Storybook Online</h4><p>After UI development is done, you will want to show your work to your team (engineers, designers, PMs, and other stakeholders) so they can review that the UI looks right and give feedback. You can automate the workflow by <a href="https://storybook.js.org/docs/react/sharing/publish-storybook">publishing Storybook</a> online.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*V82KSlltlDLqaJvGZMWn9g.png" /><figcaption>via <a href="https://storybook.js.org/docs/react/sharing/publish-storybook">storybook</a></figcaption></figure><p>You no longer need to spin up a dev environment manually to show your work online. Instead, you can easily share the Storybook once it is published.</p><h3>How I use Storybook</h3><p>Here’re some examples of how I use Storybook for frontend and product development.</p><h4>1. Frontend First Development</h4><p>One of the best ways I’ve found to build <a href="https://www.frontendfirstdevelopment.com/">frontend first</a> is using Storybook — <a href="https://storybook.js.org/docs/react/get-started/why-storybook#the-solution">build UIs in isolation</a> without needing to fuss with data, APIs, or business logic. Start with UI as a purely static design or wireframe without any data models. This makes UI workflow flexible and working with other teammates easier and faster because frontend is no longer blocked by backend.</p><p><strong>💡 </strong>Use <a href="https://storybook.js.org/addons/msw-storybook-addon">MSW Storybook Addon</a> if you need to mock API requests and consume mocked data for UIs.</p><p>Another good thing about frontend first workflow is that I can think of backend design and data models while prototyping UIs on Storybook. This helps to collaborate easy with engineers on overall architecture especially when frontend and backend engineers are separated in your team.</p><h4>2. Review with Team</h4><p>◆ <strong>Code Review<br></strong>Good PR (pull request) summary makes code review process easier and faster in software development. Providing Storybook in the summary helps reviewers understand your code better as they can check the updated UI and give feedback during code review.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M6jYONiZnPol2T-8-JdFHg.png" /><figcaption>Example code that updates button color to `salmon`</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xe6Dp4ucrPDnr9DRIcIE2A.png" /><figcaption>Example Storybook that shows updated button color `salmon`</figcaption></figure><p>To embrace other engineers to provide Storybook, I added the <a href="https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/creating-a-pull-request-template-for-your-repository">pull request template</a> in every frontend Github repositories:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/0*Y6zekd7ZsUECdrqW.png" /><figcaption>Example pull request template</figcaption></figure><p><strong>💡</strong> The example above that provides Storybook and gathering feedback for UI review is still manual. <a href="https://storybook.js.org/docs/react/sharing/publish-storybook#publish-storybook-with-chromatic">Chromatic</a> automates these jobs and integrates them into your Git and CI tooling for Storybook.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jKEPzuAnUNX2IjvZ2_4HMg.png" /><figcaption>Example PR that shows Chromatic checks with Storybook</figcaption></figure><p>◆<strong> UI Review</strong><br>You can share Storybook to make sure your work is what stakeholders expected and get feedback from them before merging your code and shipping.</p><p><strong>💡 </strong>If you publish Storybook to <a href="https://www.chromatic.com/">Chromatic</a>, you can use the <a href="https://www.chromatic.com/features/publish?utm_source=storybook_website&amp;utm_medium=link&amp;utm_campaign=storybook">UI Review</a> feature to automatically scan your PRs for new and updated stories. That makes UI review process easier and faster with your team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oqrAAlddunoBrb_gm-LksA.png" /><figcaption>Showing UI difference to compare stories on Chromatic</figcaption></figure><h4>3. Decision Making</h4><p>When making decisions for choosing frontend frameworks or libraries, I make a quick demo on Storybook and share it with other engineers for comparison tests so we can discuss and gather feedback together before making a decision by myself. It not only helps to make a decision, but also other engineers understand why and how the decision is made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VgDsopvd0jefMu4wvF4sZg.png" /><figcaption>Example PR with Storybook demo for choosing a form library</figcaption></figure><h4>4. UI/UX Prototypes in Product Discovery</h4><p>In the discovery phase of product development, I provide UI/UX prototypes for designers and product managers so they are able to validate and refine ideas as well as collect new insights. Even if the idea is not ready, I can build and share the prototypes on Storybook quickly for a proof of concept.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wDbZQQcLUXtAQdqO36ZxAA.png" /><figcaption>Example PR that provides prototype/s using Storybook</figcaption></figure><p>Storybook helps to do rapid experiments in product discovery and to learn MVP (Minimum Viable Product) before building an actual product-quality deliverable.</p><h3>Again. Why Storybook?</h3><p>I believe that great tools nudge us in the right direction and save our time with less effort. Storybook’s architecture and automated UI workflow helps to focus on *UI development* rather than other things. It also helps collaborating with teammates easier and faster in product development. Storybook for productivity!</p><p>How do you use Storybook? I’d love to hear about your story :)</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=388d8718465" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Design-minded Engineers]]></title>
            <link>https://medium.com/@heyjinkim/design-minded-engineers-dac790a2fe76?source=rss-40cf15ca5d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/dac790a2fe76</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[design-thinking]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[empathy]]></category>
            <dc:creator><![CDATA[Heyjin.K;]]></dc:creator>
            <pubDate>Fri, 23 Dec 2022 01:01:20 GMT</pubDate>
            <atom:updated>2024-09-19T16:27:57.134Z</atom:updated>
            <content:encoded><![CDATA[<p>Design is for human and <a href="https://medium.com/google-design/design-for-emotion-7ba0cf40e05b">make human feelings better</a>. It reminds us that we make software for other people to use — trying to understand what people are going through and all the problems in the pain points that software can address. It resolves as we connect real-world objects and the virtual reality of software.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X6Ani6uPd5k7MG-7aJSnzw.png" /><figcaption><a href="http://interaction-design.org/">Interaction Design Foundation</a></figcaption></figure><p><a href="https://www.interaction-design.org/literature/topics/design-thinking">Design thinking</a> in the software design process is important. Business needs tech (software) and design can help to understand users’ needs. If we can design and make people keep using our software, we make people feel better and it could make us feel happy. It helps us to make better decisions.</p><p>Engineers have been using designs for decades:</p><ul><li>We design software, teams, and how to operate together</li><li>We design API or UI components</li><li>We design to reduce complexity</li><li>We make and test UI/UX prototypes</li></ul><h4>Empathy</h4><p>Again. Why do we make software?</p><p>We have a lot of feelings and software tries to key into that and make human feel better.</p><p>🧐 I FEEL curious — Google, Twitter</p><p>😵 I FEEL lost — Map, Uber</p><p>😵‍💫 I FEEL lonely — Bumble, Tinder</p><p>🥱 I FEEL bored — Instagram, Youtube</p><p>Empathize. Empathy is the first step in design thinking that allows us to understand the problem we’re trying to solve. Through empathy, we gain real insight into users and their needs.</p><h4>Design-minded Engineers</h4><p>Why are design-minded engineers valuable and design-thinking is important in software development? Because they have empathy towards other people and their feelings to make software. They try to understand what people are going through and address the problems.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*R7ZUHH_MpFr-68fC0URzzQ.png" /><figcaption><a href="https://x.com/heyjinkim/status/1031637629417271297">Research</a> how to address confusion and improve UX in my software development</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jpmT-dGkiIOZBCg2" /><figcaption>Jira epic “CS/CM <em>Happiness</em>” for customer team to address their needs (could be bug fix or tech debs)</figcaption></figure><p>Design-minded engineers work closely with designers and other collaborators to <a href="https://www.mindtheproduct.com/learnings-from-london-marty-cagan-on-making-products-customers-love/">create products customers <em>love</em></a><em> </em>and resolve problems together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/596/1*GBsEcKO2EqdwMTIrXFmT8w.png" /><figcaption><a href="https://methodandmatter.com/">Andi</a> is my favorite designer &amp; coach. We built the pilot project together in a week and it was a lot of fun!</figcaption></figure><p>Lastly, design-minded engineers know inconsistent design and engineering handoff can lead to bugs. So consistency in design and software development is important to them. They embrace design strategies for better code.</p><h4>We are all human</h4><p>Design-minded engineers should not shy about voicing opinions about the design or usability. Communication skills are important and we should learn how to communicate better. I’d recommend watching “<a href="https://youtu.be/R1vskiVDwl4">10 ways to have a better conversation</a>” talk by <a href="https://celesteheadlee.com/">Celeste Headlee</a>.</p><ol><li>Don’t multitask</li><li>Don’t pontificate</li><li>Use open-ended questions</li><li>Go with the flow</li><li>If you don’t know, say so</li><li>Don’t equate your experience with theirs</li><li>Try not to repeat yourself</li><li>Stay out of weeds</li><li>Listen</li><li>Be brief</li></ol><p>Designers and engineers, we are all human. We are a team and having a good culture is important. Then we can have a lot of fun working together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*01kozIUYK5sBjJxKPsgRKQ.jpeg" /><figcaption>Just another Friday, field trip to <a href="https://www.cooperhewitt.org/">Cooper Hewitt Design Museum</a> with designers</figcaption></figure><p>I believe that design and design-mind is for everything — use the thought process with empathy as a tool. For example, “<a href="https://designingyour.life/">Design your (work) life</a>”.</p><p>Thanks for reading!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dac790a2fe76" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why we use D3 and Ember for Data Visualization]]></title>
            <link>https://medium.com/@heyjinkim/why-we-use-d3-and-ember-for-data-visualization-e23390ec1a3d?source=rss-40cf15ca5d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/e23390ec1a3d</guid>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Heyjin.K;]]></dc:creator>
            <pubDate>Sat, 19 Nov 2022 21:38:42 GMT</pubDate>
            <atom:updated>2022-12-01T20:24:54.781Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article was originally posted in </em><a href="https://medium.com/simplereach/why-we-use-d3-and-ember-for-data-visualization-b8a743bcd09"><em>SimpleReach blog</em></a><em> on Dec, 2013.</em></p><p>When visualizing data on the web, there are two things that we need to think of, the DATA and the DOM.</p><p><a href="http://d3js.org/">D3</a> is the go-to visualization library because it’s a flexible and data-driven approach to DOM manipulation; D3 does the complicated math so we can think more about data and visualization.</p><p><a href="http://emberjs.com/">Ember</a> is a MVC javascript framework for creating ambitious web applications. But, why should we use Ember with D3 for DATA and DOM manipulation? Ember gives you tools to easily manage things like async requests and the MVC architecture helps to manage complexity.</p><h4>Let’s see the reasons why we use D3 and Ember.</h4><p>We use D3 for all our data visualizations like donut, area and bubble charts. In the example below, there are three large donut charts representing the percentage of social actions and referrals from different social networks. The charts are updated in real-time and clicking on each one displays a breakdown of the data by network also in real-time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*gNeAwMWJhn4j6vVF.png" /></figure><p>A screenshot of our dashboard, complete with real-time donut and area charts.</p><p>You can also see many smaller donut charts in the trending articles list. We use the donut charts throughout the application. They all function the same — the only difference is the data and size — so we wanted to make them reusable. We also work with a lot of real-time data so we have to be very careful about performance and DOM manipulation.</p><p>D3 is great for data visualization, but when dealing with complex applications your code can quickly turn into complicated spaghetti. I am not the only one who realized the problem. Sam Selikoff wrote an great article about <a href="http://www.samselikoff.com/blog/2013/07/23/ember-d3-starting-out/">getting started with Ember + D3</a> and sums it up nicely:</p><blockquote><em>Ember’s opinionated architecture and design are exactly what I’d been looking for. I could now scaffold a project and be confident in its foundation. Interactive data visualizations can get tricky really fast, but I’ve already caught a glimpse of several Ember features that can smooth out these rough spots. I’m just starting out, but I’d like to share what I’ve learned about how these two technologies can work together.</em></blockquote><h4>Let’s see how we solved the issues with Ember:</h4><h4>1. Managing the asynchronous behavior of the d3.json method</h4><p>With d3.json a callback function is used to wrap all methods that change the DOM elements. In large applications, this become unwieldy because it is hard to separate out concerns. With Ember you move the logic out of the callback and into Ember’s model, controller and view objects. If you are interested, read more about <a href="http://emberjs.com/guides/understanding-ember/managing-asynchrony">the benefits</a> of Ember’s approach.</p><h4>2. Performance of DATA handling and DOM manipulations</h4><p>Without Ember, this quickly becomes a problem with real-time updates as DOM manipulations are computationally expensive and often event based actions send redundant signals. The Ember run loop is a solution to both these problems because it’s a smart queuing system that restricts DOM changes to only those necessary and transforms event based actions into streamlined method calls. It also gives you many ways to control when and how your data comes into the application, allowing you to debounce, throttle and delay when data gets to the DOM in a very clean and concise way. This is a major performance win with DOM-related changes and updates the DOM when it makes sense.</p><h4>3. Responsive and reusable charts with SVG</h4><p>With HTML/CSS based charts, it’s easy to make charts responsive, but with SVG many properties need to be updated simultaneously, Ember computed properties and data bindings provide a <a href="http://corner.squareup.com/2012/04/building-analytics.html">perfect way to do that</a>.</p><p>We use Ember Component to make charts reusable. Ember Components adhere closely to the <a href="http://www.w3.org/TR/components-intro/#introduction">W3C Web Components standard</a>.</p><blockquote><em>Web Components enable Web application authors to define widgets with a level of visual richness and interactivity not possible with CSS alone, and ease of composition and reuse not possible with script libraries today.</em></blockquote><p>But until Web Components are standard in browsers, Ember is the best way to create modular reusable code. For additional details, please read my article about <a href="https://medium.com/@heyjinkim/reusable-d3-charts-with-ember-js-components-5b808069fc3a">Reusable D3 charts with Ember.js Components</a>.</p><h4>Focus on the story</h4><p>One of Ember’s core promises is that it gives you a separation of concerns for DATA and DOM. You know where the code belongs, it makes it difficult for you to put it in the wrong place. In combination with D3, it allows you to create responsive, reusable charts and focus on telling your data story.</p><p><em>About the author:</em></p><p><em>Heyjin Kim is a senior full-stack engineer who loves Ember, D3 and of course Javascript. Frequently in Heyjinland with wine and dogs and referred to as the Ember princess by many.</em></p><h3>SimpleReach on Twitter: &quot;D3 and Ember are our tools of choice, and @heyjinkim explains why: http://t.co/PuOFb3UpaP / Twitter&quot;</h3><p>D3 and Ember are our tools of choice, and @heyjinkim explains why: http://t.co/PuOFb3UpaP</p><h3>Ember Watch on Twitter: &quot;*Why we use D3 and Ember.js for Data Visualization* by @heyjinkimhttp://t.co/Ow1oNitTiN #emberjs / Twitter&quot;</h3><p>Why we use D3 and Ember.js for Data Visualization* by @heyjinkimhttp://t.co/Ow1oNitTiN #emberjs</p><h3>Sebastian Gutierrez on Twitter: &quot;#D3js #Ember #DataViz #SimpleReach &gt;&gt; Why we use D3 and Ember for Data Visualization | @heyjinkim http://t.co/nGRHJjO6FK / Twitter&quot;</h3><p>D3js #Ember #DataViz #SimpleReach &gt;&gt; Why we use D3 and Ember for Data Visualization | @heyjinkim http://t.co/nGRHJjO6FK</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e23390ec1a3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[EmberConf 2014]]></title>
            <link>https://medium.com/@heyjinkim/emberconf-2014-ad1ba597c544?source=rss-40cf15ca5d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/ad1ba597c544</guid>
            <category><![CDATA[ember]]></category>
            <dc:creator><![CDATA[Heyjin.K;]]></dc:creator>
            <pubDate>Sat, 19 Nov 2022 21:16:45 GMT</pubDate>
            <atom:updated>2024-09-19T01:38:40.568Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve spoken at <a href="https://2014.emberconf.com/">EmberConf</a> about “Using Ember to Make the Seemingly Impossible Easy” with Andre. Here’s the <a href="http://confreaks.com/videos/3298-emberconf2014-using-ember-to-make-the-seemingly-impossible-easy">Video</a> and <a href="https://speakerdeck.com/simplereach/using-ember-to-make-the-seemingly-impossible-easy">Slides</a>.</p><p>One of the things I spoke was “Ember to make working with D3 easy”. There are many reasons <a href="https://medium.com/@heyjinkim/why-we-use-d3-and-ember-for-data-visualization-e23390ec1a3d">why we should use D3 with Ember for Data Visualization</a>, but in this talk, my focuses were 1) productivity 2) Ember as a framework to nudge your code in the right direction.</p><h3>Tom Dale on Twitter: &quot;Now I know why D3 jelly tastes so good with the Ember.js peanut butter. #emberconf @heyjinkim @ramcio pic.twitter.com/2KSbgOVSXe / Twitter&quot;</h3><p>Now I know why D3 jelly tastes so good with the Ember.js peanut butter. #emberconf @heyjinkim @ramcio pic.twitter.com/2KSbgOVSXe</p><p><strong>Great write ups about my talk:</strong></p><p>by <a href="https://twitter.com/allie_p">Allison Sheren</a> from <a href="http://allisonsherenmcmillan.blogspot.com/2014/03/using-ember-to-make-seemingly.html">Other Great Things I Learned At EmberConf</a></p><p><em>The second aspect they spoke about were visualizations. This is basically helping people understand the story behind the data. In order to do this effectively, they used an ember component (something that was frequently discussed throughout the conference). Basically, in an ember component, they encapsulated D3 code. They did this by defining a components, adding the D3 code into it which allowed them to draw a donut chart. I’d never heard of D3 code before but the main point was that by wrapping this code into an ember component, a developer can change/utilize the ember component to make the changes they need to instead of having to dive into the D3 code.</em></p><p>by <a href="https://twitter.com/pixelhandler">Bill Heaton</a> from <a href="http://pixelhandler.com/posts/we-are-emberconf-2014">We are EmberConf 2014</a></p><p><em>Frameworks are Designed to Nudge You in the Right Direction</em></p><p><em>Data visualization can be a complex chore for a team with varying strengths. Ember Component can be used to encapsulate complexity of using a 3rd party library like D3 for pretty data on screen. Application code can be built with more than one recipe to deliver a different experience by only changing the dependency for a router file. I find that once I get the concepts of using components to isolate behavior and reuse it in various contexts that is a very powerful and valuable convention. And Web components are in the not so far off future already. Welcome to the future :) (Not really.) But I do think that using Ember components is a peek into what will likely be a shared way build reusable components on the Web in general.</em></p><h3>Taras Mankovski on Twitter: &quot;@ember_princess and @ramcio presenting Make the Seemingly Impossible Easy with #EmberJS at #emberconf pic.twitter.com/LmDut39t8w / Twitter&quot;</h3><p>@ember_princess and @ramcio presenting Make the Seemingly Impossible Easy with #EmberJS at #emberconf pic.twitter.com/LmDut39t8w</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ad1ba597c544" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reusable D3 charts with Ember Components]]></title>
            <link>https://medium.com/@heyjinkim/reusable-d3-charts-with-ember-js-components-5b808069fc3a?source=rss-40cf15ca5d57------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b808069fc3a</guid>
            <category><![CDATA[d3]]></category>
            <category><![CDATA[ember]]></category>
            <dc:creator><![CDATA[Heyjin.K;]]></dc:creator>
            <pubDate>Sat, 19 Nov 2022 20:23:44 GMT</pubDate>
            <atom:updated>2022-12-01T20:28:27.749Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article was originally posted on Aug, 2013.</em></p><p>I recently read a good article called <a href="http://www.phloxblog.in/d3-js-angular-directive/?utm_source=buffer&amp;utm_campaign=Buffer&amp;utm_content=buffere1b4b&amp;utm_medium=twitter">D3.js in Angular.js Directive</a> from <a href="https://twitter.com/DashingD3js/status/353848130460073985">DashingD3</a> and thought it would be interesting to recreate the example using <a href="http://emberjs.com/guides/components">Ember.js components</a>.</p><p>Here’s how I created the example using an Ember.js component:</p><p><a href="http://jsbin.com/d3ember-barchart/13/embed?live">Reusable D3 charts with Ember.js Components</a></p><p>As you can see in the JSBin, we have two different bar charts with distinct widths and heights. (<a href="http://jsbin.com/d3ember-barchart/13/edit">Direct Link</a>)<br>To implement more bar charts, simply add the component to the application template again:</p><pre>{{bar-chart width=960 height=500 data=content}}</pre><p>Mike Bostock wrote an article, <a href="http://bost.ocks.org/mike/chart/">Towards Reusable Charts</a> and the entire time I was reading it I thought about Ember’s components.</p><p>In his article Mike says:</p><p><em>“Internally, the chart implementation becomes slightly more complex to support getter-setter methods, but convenience for the user merits additional developer effort!”</em></p><p><strong>I’d like to propose that using </strong><a href="http://emberjs.com/guides/components"><strong>Ember.js Components</strong></a><strong> is one of the best ways to encapsulate reusable charts. </strong>Ember accomplishes the same thing as Mike’s example, but it feels more natural and less complex doing it in Ember because getter and setter methods are a fundamental part of Ember.</p><h3>Tom Dale on Twitter: &quot;For you Angular peeps, an Ember.js component is roughly equivalent to an E restricted, transcluded, isolate-scoped directive. / Twitter&quot;</h3><p>For you Angular peeps, an Ember.js component is roughly equivalent to an E restricted, transcluded, isolate-scoped directive.</p><p>For a quick comparison of bar charts using different frameworks:</p><ul><li><a href="http://bl.ocks.org/mbostock/3885304">D3</a></li><li><a href="http://www.phloxblog.in/d3-js-angular-directive/?utm_source=buffer&amp;utm_campaign=Buffer&amp;utm_content=buffere1b4b&amp;utm_medium=twitter">D3 and Angular</a></li><li><a href="http://jsbin.com/d3ember-barchart/13/edit">D3 and Ember</a></li></ul><p>Here’s another example that I created <a href="http://jsbin.com/donuts/8/edit">Donut Charts</a>:</p><h3>Heyjin.K; on Twitter: &quot;I&#39;m baking a lot of donuts with Ember.Component:http://t.co/7pCxxWxndc #emberjs #d3js #donutchart / Twitter&quot;</h3><p>I&#39;m baking a lot of donuts with Ember.Component:http://t.co/7pCxxWxndc #emberjs #d3js #donutchart</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b808069fc3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>