<?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 Garima goyal on Medium]]></title>
        <description><![CDATA[Stories by Garima goyal on Medium]]></description>
        <link>https://medium.com/@ggoyal_84935?source=rss-83f43d021f53------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*T69eFBueF5M4qFcao41BpA.jpeg</url>
            <title>Stories by Garima goyal on Medium</title>
            <link>https://medium.com/@ggoyal_84935?source=rss-83f43d021f53------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 23:55:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ggoyal_84935/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[Vega lite: A grammar of interactive graphics]]></title>
            <link>https://medium.com/cuny-gc-data-visualization/vega-lite-a-grammar-of-interactive-graphics-5839d79e8f37?source=rss-83f43d021f53------2</link>
            <guid isPermaLink="false">https://medium.com/p/5839d79e8f37</guid>
            <category><![CDATA[vega-lite]]></category>
            <dc:creator><![CDATA[Garima goyal]]></dc:creator>
            <pubDate>Mon, 22 May 2023 19:10:27 GMT</pubDate>
            <atom:updated>2023-05-22T19:10:27.804Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W0O21MLfHi57Ubsx_5Fxug.png" /></figure><p>Creating a visualization means creating a visual representation of abstract data, which helps to intensify cognition. And the main task of the visualization designer is to define how abstract data should be encoded visually, without having to worry about little details like scale and axes.</p><p><strong>The design of Vega-Lite:</strong></p><p>Vega-Lite’s design was inspired by the best in the biz — Grammar of Graphics, ggplot2, and Tableau’s Viz QL. Combined with the power of the Vega and D3 systems, it unlocks the ability to effortlessly encode abstract data visually and bring it to life. No, fussing over scales or axes is required!</p><p>Vega-Lite’s toolkit comprises a broad spectrum of features that support both data and visual transformations. From aggregating and binning to filtering and sorting, Vega-Lite can handle it all. With additional support for interactive transformations like stacking and faceting, Vega-Lite also offers panning, zooming, and linked selection — making it a highly versatile platform for your visualization needs.</p><p>The <strong>purpose </strong>of Vega-Lite is to streamline the process of exploratory data analysis using a succinct yet powerful language that enables the creation of interactive multi-view graphics.</p><p>For example-</p><p>Representing weather data of Seattle, having the information about precipitation and wind temperature using 1D Strip Plot in Vega lite.</p><p>The syntax would be:</p><pre>{&quot;$schema&quot;: &quot;https://vega.github.io/schema/Vega-lite/v5.json&quot;,<br>&quot;data&quot;: {&quot;URL&quot;: &quot;data/seattle-weather.csv&quot;},<br>&quot;mark&quot;: &quot;tick&quot;,<br>&quot;encoding&quot;: {<br>&quot;x&quot;: {&quot;field&quot;: &quot;precipitation&quot;, &quot;type&quot;: &quot;quantitative&quot;}<br>}<br>}</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/295/1*z6Gg4szYlI4MgzbyJQqvdg.png" /><figcaption>1 D strip plot</figcaption></figure><p>This visualization has low ambiguity, the reason behind low ambiguity is Vega-lite complier, which includes the scale and axis itself.</p><pre>Scale: {type: &quot;linear&quot;, domain: [0,8], ….}<br>Axis: {title: &quot;temp&quot;, grid: true, …}</pre><p>These default settings in Vega-lite are meticulously crafted to follow the best practices in visualization design.</p><p><strong>Layered and Multi-view Composition:</strong></p><p>Vega-lite has the grammar to compose views and make them fit to new opportunities. And in our grammar, we have developed the four basic operators to compose charts: <strong>layer</strong>, <strong>facet</strong>, <strong>con-cat</strong> and <strong>repeat.</strong></p><p>Vega-Lite offers a diverse array of techniques to amalgamate multiple charts in order to enhance the visualization and analysis of your data. Through the process of layering, Vega-Lite empowers you to assemble charts atop one another in a harmonious manner, with the axes and scales meticulously aligned and shared automatically. Faceting, on the other hand, partitions your data into distinct groups and generates an individualized chart for each grouping. Concatenation enables you to amalgamate disparate charts into a dashboard layout, yielding a comprehensive and holistic representation of your data. Lastly, repeat confers upon you the ability to concatenate charts in a data-driven manner, leveraging the power of your data to generate unique and adaptive visualizations. With Vega-Lite at your disposal, you have at your fingertips an arsenal of powerful tools to elevate your data visualization and analysis to new heights.</p><p>A crucial advantage of these operators is their ability to combine layering, faceting, and concatenation techniques to create a rich and immersive multi-view graphic within a single declarative specification.</p><p><strong>Unleashing the Power of Interaction: Vega-Lite’s Selections and Selection Transforms:</strong></p><p>Let Vega-Lite simplify your interactive visualization specifications by extending the definition of unit specifications to include <strong>selections</strong>.</p><p>The core building block for the grammar of interaction are the following <strong>selections</strong>-</p><ul><li>Event processing: Analyzing a stream of information about the interaction that happens.</li><li>Point of interest: which data/mark points were interactive with?</li><li>Predicate function: What is the full set of selected marks/data points?</li></ul><p>Vega Lite Selections for (single point): A selection in Vega-Lite consists of a name, which we refer to as “picked”. By using conditional logic, we can modify the color of a data point based on the selection made by the user. This enables interactive exploration of data and enhances the ability to extract insights from visualizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*As9IIWhQ1hO3AacIEdhWgg.png" /><figcaption>Vega-lite Selections: A single point</figcaption></figure><p>Also, we can change the type of selections so that we can add multiple points to it.</p><p><strong>Selection Transforms</strong> are composable operators that modify a selection component and are analogous to data transformation. Vega-Lite offers a minimal set of transforms to support both common and custom interaction techniques. These include <strong>project, toggle, translate, zoom, and nearest,</strong> each with specific functionality related to altering selection, offsetting spatial properties, and computing Voronoi decomposition. These transforms enable a range of interactive data exploration possibilities, enhancing the user’s ability to extract insights from visualizations.</p><p>In Vega-Lite, interactive selections and view composition can be combined to create coordinated interactions. For example, an interval selection can be used to filter a set of histograms, creating a brushing and linking effect. As the viewer adjusts the selection, they can see how the other distributions change in response. This enables a more intuitive and dynamic exploration of data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/827/1*9mGTNodef6ytcCsk9MyTSw.gif" /><figcaption>A crossfilter interaction in Vega-Lite</figcaption></figure><p>By combining view composition and interactive selections, Vega-Lite allows you to create rich, dynamic graphics that help you explore your data in new and exciting ways. With Vega-Lite, the possibilities are endless.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5839d79e8f37" width="1" height="1" alt=""><hr><p><a href="https://medium.com/cuny-gc-data-visualization/vega-lite-a-grammar-of-interactive-graphics-5839d79e8f37">Vega lite: A grammar of interactive graphics</a> was originally published in <a href="https://medium.com/cuny-gc-data-visualization">CUNY GC Data Visualization</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>