<?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 Anup Sathya on Medium]]></title>
        <description><![CDATA[Stories by Anup Sathya on Medium]]></description>
        <link>https://medium.com/@anupsathya?source=rss-8bd098d0eac6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WReiBdFfe4zEKn4SRYTStw.jpeg</url>
            <title>Stories by Anup Sathya on Medium</title>
            <link>https://medium.com/@anupsathya?source=rss-8bd098d0eac6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 19:30:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anupsathya/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 well-designed is Notion?]]></title>
            <link>https://medium.com/swlh/how-well-designed-is-notion-dfa74b33d2d1?source=rss-8bd098d0eac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfa74b33d2d1</guid>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[website]]></category>
            <category><![CDATA[apps]]></category>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Anup Sathya]]></dc:creator>
            <pubDate>Tue, 04 Feb 2020 21:08:38 GMT</pubDate>
            <atom:updated>2020-02-11T09:38:01.743Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5fsCs0R8oHnhQ93R5N0Qag.png" /><figcaption>notion.so</figcaption></figure><p>A large body of human productivity has moved from the physical world to the digital world. Something <a href="https://www.goodreads.com/book/show/48019.The_Effective_Executive">Peter Drucker</a> calls “knowledge work”. With this, how we organize our work has also changed. Like how the desktop metaphor was used to seamlessly transition between the physical desk and the computer, the next transition is moving the entire workspace from the physical world into the digital world.</p><p>Remote work is more popular than ever and in terms of individual productivity, with the use of technology, a single employee can accomplish more than an entire team could a couple of decades ago.</p><p>Along with this immense power, humans still don’t have an expanded memory. They can use their memory lesser due to search engines and what not, but the way we organize information in our brains is a bottleneck.</p><p>There’s two aspects to the “workspace”. Managing information, and managing tasks. Apps like Evernote, Boostnote and all the other notes applications try to solve the first problem. A site-specific wiki also works on the same issue. On the other hand, apps like Todoist, Trello, Asana, try to solve the task management side. Most of these revolve around a <a href="https://en.wikipedia.org/wiki/Kanban_board">Kanban board</a> of some sort.</p><p>Notion attempts to solve both these issues at the same time. And when any app tries to do many things at once, the user experience gets shot in the kidney.</p><p>I’ve been using Notion for more than a year now. I essentially use it as a second brain to store all the information that I think I need to remember, but don’t trust my physical brain to hold onto.</p><h4>Affordances and Signifiers</h4><p>From what I can gather, Notion mostly runs on TypeScript. Which works really well in a browser, but it also essentially works as a progressive web app, meaning it can run on any device with a small wrapper.</p><p>There’s a good-side and a bad-side to this. The good-side is that it can run on almost any device and it affords different forms of interaction. The bad-side is, it doesn’t feel like an app when you’re running it on a mobile device and that can be slightly frustrating.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDw69Qw0WG5MqDpI9bPw1Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*DKdjn6Tbdf467CYHpSsCxw.gif" /><figcaption>On mobile, the page has to be refreshed every time you open it. On the desktop app, this is on a modal so it doesn’t look like it’s loading.</figcaption></figure><p>This creates functional issues like the lack of caching which affects the user experience. When you’re using an app, users get slightly annoyed when the page has to re-load every time they have to open it especially if they’re switching between two different pages.</p><p>In terms of signifiers, Notion does a really good job. Everything that can be interacted with/edited is highlighted in some manner on mouse-over or when the mouse is near that area.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*IiUOW_Y7WSImTCGFI6Jx2w.gif" /><figcaption>Every editable field is highlighted adequately.</figcaption></figure><p>This translates to always knowing what can be changed and what cannot. More often than not, because Notion is so modular, almost everything can be edited and the constant feedback is useful and necessary.</p><h4>Discoverability and Understanding</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*y762iAdzjzTWi78xXz8lOg.png" /><figcaption>The Get Started guide</figcaption></figure><p>Notion uses this single page to let users know about the basic functions of Notion. Although having the need for a get started guide is seen as a red-flag for discoverability and understanding, this is mainly due to how Notion employs the use of a block editor. And the base interactions are something most users might not be familiar with. Personally, I haven’t had any trouble with discovering/understand what Notion can do. I’ve never had to Google something frantically to understand whether I can do it or not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KhT0b-ftOwph6-Gu6Bdp5Q.png" /><figcaption>The templates page in Notion. The base templates in Notion are more than powerful enough to handle a lot of tasks.</figcaption></figure><p>Notion also has helpful start-up templates that display the power of the base building blocks in Notion. They also constantly add new templates based on the usage patterns that they notice. This tells me that they do a lot of user research to understand how their users use the app.</p><h4>Usability</h4><p>Notion shines in this area. Notion attempts to integrate Kanban boards, databases, tables, media and information organization into one app. And the template gallery above should give you a fair idea about how Notion can be used in various different scenarios. The base building blocks are also robust enough to accommodate other use cases.</p><h4>Utility</h4><p>As with any app that gives you a lot of tools to accomplish what you want, Notion has a small learning curve. And the steepness of that learning curve depends on how you want to use Notion. If you intend to use Notion as a note-taking app, the learning curve is really flat. But if you intend to use it as a deep well-connected database of information, the learning curve is steeper. This translates into the utility of the app also having a curve. The more you hope to accomplish with the Notion, the more utility it provides. More often than not, once you set up something in Notion, you realize how you can’t do that in any other app. And that, in my opinion, is a huge utility win.</p><p>Notion also has a lot of integration options including Google Drive, Trello, Evernote and so on. This heavily adds to the utility of the app as it doesn’t force the people you’re working with to use Notion if they don’t want to and that’s the major hurdle while moving to a new app.</p><h4>Functional Integrity</h4><p>As I explained in the Affordance section, the fact that it’s a progressive web-app leads to some unfortunate, mildly frustrating experiences. Page reloads every-time you open something is not something anyone wants.</p><p>Notion has the ability to store your page offline. Which means that caching the pages isn’t impossible. But even when the pages are offline, there’s a slight lag when you open a page. And that affects the trust that you build with an app when it’s consistently quick and reliable.</p><p>This can be fixed by introducing the ability to cache effectively and not re-load pages every single time.</p><h4>Visual Design</h4><p>For an extremely functional app, Notion looks really good. In-spite of having loads of information on a single page, the block editor ensures that there’s no unfortunate typography and the ability to switch between a light mode and a dark mode makes everything visually pleasing and clean.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lq9DNUmusiozRqEXRVOMYA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lJMdq9I8Sb7jNv7DtF6vZg.png" /><figcaption>Light mode and dark mode.</figcaption></figure><p>Personally, I like the dark mode as it looks swankier. Notion also adds the option to add an image header to every page. This is a nice break, away from the usual boring layouts in every other notes app.</p><h4>Persuasiveness</h4><p>This is a hard one to judge Notion on. Like any app that attempts to be a tool, the persuasiveness depends on the user. Photoshop can’t persuade a user to edit all his photos, but when a user wants to edit a photo, it presents everything that’s needed. And Notion is similar. As seen in all the screenshots, when I started writing book summaries for everything that I read, I couldn’t step away from Notion. And every time I read a dense non-fiction book now, I need Notion in the background to put my thoughts down. I assume this is the case for other tasks as well. When you start using it for a particular function, Notion persuades you to stick to it for that particular function.</p><h4>Is it well designed?</h4><p>I’ve spent a lot of time experimenting with notes apps. For a while I had Evernote and Trello working in conjuncture. I then moved onto Boostnote and <a href="https://github.com/zadam/trilium">Trilium</a> to build custom templates for the things that I wanted to do in personal knowledge base. I was positively obsessed with organizing the information that I was consuming into a usable hierarchy and nothing filled that void effectively.</p><p>Since I’ve started using Notion, that void has disappeared and that’s a major reason why I’ve continued to use it consistently for such a long time. Maybe this counts as a bias and it deems my critique as invalid, but nevertheless, I do believe that Notion is well-designed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfa74b33d2d1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/how-well-designed-is-notion-dfa74b33d2d1">How well-designed is Notion?</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The sublime indifference of nature]]></title>
            <link>https://medium.com/@anupsathya/the-sublime-indifference-of-nature-d1a56052c01d?source=rss-8bd098d0eac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1a56052c01d</guid>
            <category><![CDATA[nature]]></category>
            <category><![CDATA[mental-health]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[habit-building]]></category>
            <category><![CDATA[personal-development]]></category>
            <dc:creator><![CDATA[Anup Sathya]]></dc:creator>
            <pubDate>Tue, 07 Jan 2020 01:17:59 GMT</pubDate>
            <atom:updated>2020-01-07T01:17:59.552Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*if3-Ph11TgaY5Z3kxwymvg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@jaymantri?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jay Mantri</a> on <a href="https://unsplash.com/s/photos/nature?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>Teachings of wise men and women that have withstood the passage of time, always seem to recommend reconnecting with nature. The fact that this might seem impossible in our 9–5 concrete jungle world is another discussion, but there seems to be some sort of consensus about nature being good for us.</p><p>Over the millenniums, we’ve built societal constructs that only matter through the lens of society — success, status, fame. No matter how hard we try to live for ourselves, these constructs force their way into our minds. Although this is why humans are human and it differentiates us from all the other species, these constructs suffocate and ambush our day-to-day satisfaction.</p><p>With all these constructs that constantly bombard us and do an extraordinary job at turning our grey matter into anxiety soup, we seem to forget how easy and necessary it is to disconnect from all of it and restore our sanity. One such construct that we can always rely on is nature.</p><p>Nature doesn’t care about your promotion. It doesn’t care about your differences with your roommates. It doesn’t care about the deep loneliness that manages to find us in a room full of people and it definitely doesn’t care about how much wealth you’ve accumulated.</p><p>Perhaps this is why we find solace in oceans and mountains. These realities beautifully and unwaveringly exist without needing any intervention from our supposedly important societal constructs. When faced with them, they filter the constructs out with remarkable efficiency. Their indifference to all the things that we’ve placed an artificial importance upon re-guides our focus towards the important, but invisible things in life.</p><p>There’s also a flip side to this. When we’re out in nature we’re less judgemental. We don’t look at a small tree and deem it to be a loser. We somehow instinctively accept that the tree turned out that way because of circumstance. Maybe this is also why we enjoy the company of dogs and other pets. We hold humans to a higher standard than other elements of nature, in spite of being shown time and time again that humans can let us down.</p><p>We can find hundreds of quandaries that cause this — social media, advertising, our innate human tendency to compare, or the cultural drift towards idolising unhealthy hustle. But, sadly, all of it is here to stay. The only sustainable way to maintain a semblance of sanity, is to build habits that pull us away from these unhealthy constructs.</p><p>These habits may come in different shapes and forms for different people. For some, it might be long walks for the sake of walking. For others, it might be swimming laps in a pool. But we have to figure out how to disconnect. And if you’ve built up a modicum of self-awareness, you should be able to identify the activities that support disconnection from the things that don’t matter as much as we thought they did.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1a56052c01d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setup, Delivery & Punchline!]]></title>
            <link>https://medium.com/visumd/can-you-visualize-stand-up-comedy-9c5741cebecc?source=rss-8bd098d0eac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9c5741cebecc</guid>
            <category><![CDATA[d3js]]></category>
            <category><![CDATA[comedy]]></category>
            <category><![CDATA[dataviz]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Anup Sathya]]></dc:creator>
            <pubDate>Thu, 12 Dec 2019 05:00:24 GMT</pubDate>
            <atom:updated>2019-12-12T19:42:30.452Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Can you visualize stand-up comedy?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aDi970ASvNCL8hpO-p0xjQ.jpeg" /><figcaption>Source: <a href="https://www.raindance.org/hidden-tools-of-comedy/">https://www.raindance.org/hidden-tools-of-comedy/</a></figcaption></figure><p>Over the years, visualizing performance art has been attempted in one form or the other. Whether it’s showing the <a href="https://bl.ocks.org/rpgove/53bb49d6ed762139f33bdaea1f3a9e1c">character arcs in a play</a>, or visualizing how <a href="https://www.informationisbeautifulawards.com/showcase/2044-shakespeare-a-data-visualization">characters speak in Shakespeare</a>, performance art has some form of inherent structure, and that structure can be visualized.</p><p>One such performance art that hasn’t been looked at as much is stand-up comedy. Even though stand-up comedy can have an inherent structure, not many efforts have been directed towards this. Perhaps it comes across as purely a novelty, but there might be more to it.</p><p>Comedy in general is known to have structure. A joke can be broken up into the setup and a punchline, and comedy shows can span across seasons and years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*wvLm4QbIOcnXd1Je7s2bnQ.gif" /></figure><p>A similar range of structure can be found in a stand-up comedy routine. A one-liner comedian like Jimmy Carr has the least amount of structure in his comedy and George Carlin, with his immense exposés about modern culture, has more structure than you’d imagine.</p><h3>How can it be visualized?</h3><p>So what do we do with this structure? Essentially it’s hierarchical data. And hierarchical data has been visualized before in more than one way. But the hierarchical data in this case is slightly different because it also has a temporal element to it. The best way to visualize such data is with the use of <a href="https://en.wikipedia.org/wiki/Arc_diagram">arc diagrams.</a></p><p>The other major aspect of stand-up comedy is the laughter. Comedians spend a lot of time tuning their jokes based on the amount of laughter they get. They do this by performing minor or major variations of their set to different audiences until they feel like they have the right one. Laughter in this scenario is essentially discrete quantitative data with a temporal aspect. This can be visualized like a bar-chart with the horizontal axis as a timescale.</p><p>Well, that all makes sense, but what does it look like?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWezvAQNdHChG8t3iXd0Yw.png" /><figcaption>Ali Wong’s Baby Cobra Netflix Special. Ali Wong lies somewhere in the middle of the spectrum of comedy with no structure to comedy with the most amount of structure. Play around with it at <a href="https://observablehq.com/d/3e2632be5fd3e96a">https://observablehq.com/d/3e2632be5fd3e96a</a></figcaption></figure><p>This visualization can be potentially be used to look at the amount of laughter at any point during a routine and trace the arcs to decide how the structure of the set affected the laughter for that joke.</p><h3>So, insights?</h3><p>Let’s take a look at the most laughter in the second half of Ali Wong’s Baby Cobra. This occurs at 56:02. The joke is pretty simple. On it’s own, it’s not that funny. But it did get the highest amount of laughter in the second half of the set. Why is that?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aFQE07inDUMEK7FC66MGbA.png" /><figcaption>Form made the joke funnier</figcaption></figure><p>If you trace the arcs from that point, the joke exists because of themes set up much before in the set. Ali Wong talks about meeting her husband, getting older, and feminism at different points. But it all culminates at this point where she talks about trying to get pregnant with her husband and how she’s trying harder — “I don’t wanna work anymore”. The form made the joke funnier. The structure of the entire set has already built Ali Wong’s worldview in the viewer’s head.</p><h3>How was it built?</h3><p>The visualization was built on an <a href="https://observablehq.com/d/3e2632be5fd3e96a">Observable notebook</a> using D3.js. The data was obtained from pudding.cool’s Github page for Ali Wong’s Baby Cobra Netflix Special.</p><p>The data is in two files. <a href="https://gist.githubusercontent.com/anupsathya/c66da4ca8f46786abfa42fa2751b495a/raw/4bf9bcdbca61ad62ed75a1abc86334989a9a7bc0/Captions.csv">One file</a> contains the captions for the special with the length of laughter at the end of each line. This creates the inverted bar chart with the length of laughter. The <a href="https://raw.githubusercontent.com/anupsathya/data/master/stand-up/ali-wong--topics.csv">other file</a> contains the topics in the special and the start time and end time for these topics. This forms the arcs in the visualization.</p><h4>Working with D3</h4><p>For this project, I was working with D3 for the first time. D3 is a JavaScript library that manipulates DOM elements based on data. So essentially you select DOM elements and manipulate their attributes based on the data you have at hand. If you’re someone who works with Objected Oriented Programming, D3 might look alien to you in the beginning. And although it has its quirks, once you start to get the hang of it, it starts to make sense and things fall into place. The biggest requirement to work with D3 is patience.</p><h4>Things to keep in mind</h4><p>While working with D3, one of the major things to keep in mind is the scale. To help with this, D3 has multiple functions like scaleLinear(), scaleBand() and scaleTime(). Deciding which one to use requires one to dive into the documentation a little bit and it would have saved me time if I did it sooner than later.</p><p>The other thing to consider is the fact that there can be more than one way to do something. When I started with the arc diagrams, I used the in-built arc function. The arc function creates an arc with 3 parameters — the inner radius, outer radius, start angle and the end angle. Although this seemed to be quite straightforward, it couldn’t work with the data I had on hand. Moving to a line instead of sticking with the arc and tinkering with it would have saved me a lot of time.</p><h3>How can it be better?</h3><p>Any arc diagram should essentially be a node-link diagram. Adding interactivity to the visualization requires nodes so that the attached DOM elements can be manipulated on mouseover. In my case, I realized this only at the end when I thought about adding interactivity after creating a static visualization. If I spent some time in the beginning manipulating the data to generate nodes and links, adding interactions would have been easy. Right now, the bar chart and the arc diagram are completely separate and this makes it impossible to add any interactivity.</p><p>The visualization can also be improved by adding more detail. This provides a good overview about the whole set, but using the captions and the time data, it’s possible to add much more detail that can be shown when the user chooses to interact with it. For instance, each individual joke can be textually analysed to detect the set-up and punchline and it can be displayed on hover.</p><p>Overall, building a rich interactive visualization might prove to be a useful exercise to help comedians with their set, given that the data collection method is streamlined somehow.</p><blockquote>Thanks to <a href="http://pudding.cool/">pudding.cool</a> for the inspiration and the data used for this visualization.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9c5741cebecc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/visumd/can-you-visualize-stand-up-comedy-9c5741cebecc">Setup, Delivery &amp; Punchline!</a> was originally published in <a href="https://medium.com/visumd">VisUMD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating Interactive Visualizations Should Be Easier]]></title>
            <link>https://medium.com/visumd/creating-interactive-visualizations-should-be-easier-137212ef1fb1?source=rss-8bd098d0eac6------2</link>
            <guid isPermaLink="false">https://medium.com/p/137212ef1fb1</guid>
            <category><![CDATA[d3js]]></category>
            <category><![CDATA[dataviz]]></category>
            <category><![CDATA[university-of-maryland]]></category>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[human-computer-interface]]></category>
            <dc:creator><![CDATA[Anup Sathya]]></dc:creator>
            <pubDate>Thu, 05 Dec 2019 03:02:47 GMT</pubDate>
            <atom:updated>2019-12-05T03:02:47.667Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How an interactive grammar of graphics changes everything.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-L_sFt1p0wkiu9neTvjMYw.png" /></figure><p>Have you spent the hours pulling your hair out trying to make your D3 project more interactive? You’re not alone. Tools like D3 and ProtoVis are useful for specific kinds of visualization, but when you step out of that use case, things get a little hairy.</p><h4><strong>Exploratory vs. Explanatory Visualization</strong></h4><p>Broadly speaking, data visualization can be categorized into two kinds.</p><p>Let’s say you’re looking at the global temperature data for the last 30 years. If you go into the visualization project knowing that temperatures have been steadily rising, you’re using the visualization to <em>explain </em>it to someone else (or to confirm it for yourself). On the other hand, if you’re dealing with unknown data that hasn’t been investigated, you have to approach the visualization in an <em>exploratory</em> manner.</p><p>Exploration often includes interaction. To be able to derive insight from a large set of data, the ability to immerse yourself in it is vital. And the only way to imbibe that sense of immersion is through interaction.</p><h4><strong>The Problem</strong></h4><p>Here’s where the problem lies. Building interactive visualizations take more effort and more time than it actually should.</p><p>Enter Arvind Satyanarayan (now an assistant professor at MIT) and his colleagues. Their paper “Vega-Lite: A Grammar of Interactive Graphics” aims to solve this issue by proposing a high-level grammar that enables rapid development of interactive data visualizations. More specifically, they aim to combine a traditional grammar of graphics with a novel grammar for interactions.</p><p>Let’s start with the first bit.</p><h4><strong>The Visualization</strong></h4><p>To be able to jump right into interactions, the data has to be quickly visualized. This requires the compiler to decode high-level specifications. In this case, the Vega-Lite compiler ingests JSON specifications and outputs a lower-level <a href="https://vega.github.io/vega/">Vega</a> specification.</p><p>This high-level specification enables rapid and expressive specification of visualizations. Take a look at this stacked bar chart.</p><figure><img alt="Stacked bar chart" src="https://cdn-images-1.medium.com/max/318/1*smAolzRKfQiWMy2JrpNjxQ.png" /><figcaption>Stacked bar chart</figcaption></figure><p>This is how many lines of code it takes to build this stacked bar-chart.</p><pre>“data”: { <br>“url”: “data/weather.csv”, <br>“formatType”: “csv” },<br>“mark”: “bar”, <br>“encoding”: {<br>“x”: { <br>“field”: “location”, “type”: “nominal”<br>}, <br>“y”: {<br>“field”: “*”, “type”: “quantitative”, <br>“aggregate”: “count”<br>}, <br>“color”: {<br>“field”: “weather”,<br>“type”: “nominal” <br>}</pre><h4>The Interaction</h4><p>Like I mentioned before, the most important part of any exploratory data visualization is the interactions. So how does the Vega-Lite handle that?</p><p>Whereas D3 encapsulates event processing — making it harder to distinguish between things like dragging and panning — Vega-Lite employs an <em>event selection</em> method. Essentially, event streams manipulate intermediate dynamic <em>signals</em> which in turn parameterize the remainder of the specification. The authors specify that this reactive approach is twice as fast as D3’s approach.</p><p>A major part of interacting with visualizations is selecting. This can be in the form of clicking or lassoing visual items. The creators of Vega-Lite have implemented rich interactive selection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qZqVnDCFiNjn-YbdRtHwDA.png" /><figcaption>This brushable visualization took only 20 lines of code</figcaption></figure><p>This selection can essentially be extended to multiple forms of interactions which include selection, exploration, connection, abstraction, reconfiguration, and filtering. Going back to the fact that all of these are still performed with high-level specification, this allows users to write small amounts of code to build rich interactive visualizations.</p><h4>Conclusion</h4><p>Vega-Lite attempts to provide a high-level grammar to create quick, interactive data visualizations. Any tool that can create complicated interactive, good-looking visualizations with about 20–30 lines of code should be welcomed with open arms.</p><ul><li>Arvind Satyanarayan, Dominik Moritz, Kanit Wongsuphasawat, Jeffrey Heer. Vega-Lite: A Grammar of Interactive Graphics. <em>IEEE Transactions on Visualization and Computer Graphics</em>, 2017.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=137212ef1fb1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/visumd/creating-interactive-visualizations-should-be-easier-137212ef1fb1">Creating Interactive Visualizations Should Be Easier</a> was originally published in <a href="https://medium.com/visumd">VisUMD</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>