<?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 Jean-Philippe Lemieux on Medium]]></title>
        <description><![CDATA[Stories by Jean-Philippe Lemieux on Medium]]></description>
        <link>https://medium.com/@jeanphilippelemieux?source=rss-360dacfa8648------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*iIA3l8VFjAb3hfT-IPt13Q.jpeg</url>
            <title>Stories by Jean-Philippe Lemieux on Medium</title>
            <link>https://medium.com/@jeanphilippelemieux?source=rss-360dacfa8648------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 19:19:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jeanphilippelemieux/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[Obkio — Web App Released]]></title>
            <link>https://medium.com/obkio/obkio-web-app-released-ca6970de18e1?source=rss-360dacfa8648------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca6970de18e1</guid>
            <category><![CDATA[network-performance]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[performance-monitoring]]></category>
            <category><![CDATA[network-monitoring]]></category>
            <dc:creator><![CDATA[Jean-Philippe Lemieux]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 13:19:17 GMT</pubDate>
            <atom:updated>2019-04-09T17:44:52.620Z</atom:updated>
            <content:encoded><![CDATA[<h3>Obkio — Web App Released</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yav0iy_uMA9jRnzVRn6_gA.jpeg" /></figure><p><em>Originally published at </em><a href="https://obkio.com/blog/web-app-released/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=web_app_released"><em>obkio.com</em></a><em>.</em></p><p>When we started working on Obkio, it was crucial for us to have a mobile-first design. We think it’s important for our users to have an easy access to their network monitoring system anywhere. Therefore, since our MVP (Minimum Viable Product) released in July 2018, the official App has only been available on Mobile(<a href="https://itunes.apple.com/us/app/obkio/id1351924056?ls=1&amp;mt=8">App Store</a> &amp; <a href="https://play.google.com/store/apps/details?id=com.obkio.app">Google Play</a>). One of the biggest challenges of designing for small screens is the obligation to keep everything simple. This has forced us to make our user interface as intuitive as possible. Our customers have noticed this attention to ease of use, and appreciate that everything can be done with two thumbs.</p><p>But most of our customers live in a multi-device environment. Although they might need to have access to their monitoring sessions’ data from home in case of an urgent performance issue, they just as often need to keep an eye on the network status while working on other tasks on a desktop. Therefore, we have spent the last few months working hard to build a great Web App that incorporates the simplicity of our mobile designs with the possibility of displaying more information on a larger screen. We are excited to announce that we have now officially released the first version of this Web App.</p><p>Visit the Web App at <a href="https://app.obkio.com/">https://app.obkio.com</a>.</p><p>Now that we have a solid foundation for this app, we are looking at ways to leverage the additional screen space of a desktop screen. For example, in future releases, we plan to add multi-graph pages that will enable fast analysis of the performance of many network performance monitoring sessions simultaneously.</p><p>As always, customer feedback is precious to drive the next features the team will implement. Please reach out to using the Chat (bottom right of this page) or send us an email at <a href="/service/mailto:support@obkio.com">support@obkio.com</a> to tell us what functionality you would like to see next.</p><p><strong><em>About Obkio</em></strong><em>: Obkio empowers IT Administrator with simple network and application performance intelligence tools to proactively optimize end-user experience. Learn more at </em><a href="https://obkio.com/blog/fault-monitoring-vs-performance-monitoring/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=fault_vs_performance"><em>https://obkio.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca6970de18e1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/obkio/obkio-web-app-released-ca6970de18e1">Obkio — Web App Released</a> was originally published in <a href="https://medium.com/obkio">Obkio</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Creating a responsive graph with Angular and D3]]></title>
            <link>https://medium.com/@jeanphilippelemieux/creating-a-responsive-graph-with-angular-and-d3-b45bb8065588?source=rss-360dacfa8648------2</link>
            <guid isPermaLink="false">https://medium.com/p/b45bb8065588</guid>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[d3]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Jean-Philippe Lemieux]]></dc:creator>
            <pubDate>Sun, 24 Jun 2018 15:43:08 GMT</pubDate>
            <atom:updated>2018-06-24T15:50:31.104Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GpIqHj7NJh9ixD9G" /></figure><p>While the landscape of frameworks available for structuring and building web applications is changing by the minute, D3 is still the recognized way to create visualizations using Javascript. In this tutorial, we will add a D3 chart to an Angular application and make the size of the graph dynamic.</p><p><a href="https://github.com/jplemieux66/angular-d3-responsive"><em>Note: You can find the finished source code here.</em></a></p><h4>Creating the Angular project</h4><p>The first step is to create a new Angular project using the CLI, and to add the d3 library to it:</p><pre>ng new angular-d3<br>npm install d3 --save<br>npm install <a href="http://twitter.com/types/d3">@types/d3</a> --save-dev</pre><p>Next, we will create the component that we will work with:</p><pre>ng generate component bar-chart</pre><p>Finally, we will replace the content of ‘<strong>src/app/app.component.html</strong>’ with the following:</p><pre>&lt;h1&gt;Bar Chart&lt;/h1&gt;<br>&lt;app-bar-chart&gt;&lt;/app-bar-chart&gt;</pre><h4>Loading and passing data</h4><p>In this tutorial, we will use <a href="https://bl.ocks.org/mbostock/3885304">this bar chart from Mike Bostock</a> as the D3 visualization. You can find the <a href="https://gist.github.com/jplemieux66/54455956beb5f01b2aed39c11036b124">data in JSON format here</a>, and we will put it in a new asset file at ‘<strong>src/assets/data.json</strong>’.</p><p>We can also create an interface for the data points, in a new file ‘<strong>src/app/data/data.model.ts</strong>’:</p><pre>export interface DataModel {<br>  letter: string;<br>  frequency: number;<br>}</pre><p>To load this data, we can modify the ‘<strong>src/app/app.component.ts</strong>’ file like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/245bd98eef022193618dfb060ebae156/href">https://medium.com/media/245bd98eef022193618dfb060ebae156/href</a></iframe><p>For HttpClient to work, we need to add HttpClientModule to our App NgModule imports in ‘<strong>src/app/app.module.ts</strong>’.</p><p>Finally, we can pass the data to our chart component by modifying ‘<strong>src/app/app.component.html</strong>’:</p><pre>&lt;h1&gt;Bar Chart&lt;/h1&gt;<br>&lt;app-bar-chart [data]=”data | async”&gt;&lt;/app-bar-chart&gt;</pre><h4>Integrating the D3 chart</h4><p>Let’s replace the content of ‘<strong>src/app/bar-char/bar-chart.component.html</strong>’ with:</p><pre>&lt;div #chart id=&quot;chart&quot;&gt;&lt;/div&gt;</pre><p>As you can see, our component will be code-driven, with nothing in the template except a div, which will serve as our container. The chart size will be inferred from the size of this element, which will be helpful in making the SVG react like a normal html node. Here is the main part of the code, the ‘<strong>src/app/bar-chart/bar-chart.component.ts</strong>’ file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7a924214cf0137cbfa02fb6bb05deed2/href">https://medium.com/media/7a924214cf0137cbfa02fb6bb05deed2/href</a></iframe><p>This file is mostly a slightly modified version of Mike Bostock’s snippet, but instead of having a static height and width, we use the div element’s height and width. We use the data that is passed through an input property instead of getting it from the file, which separates responsibility. In the component declaration, we changed the ViewEncapsulation, since the dynamic modifications to the DOM by D3 don’t play well with the default Angular styling. Without this modification, the styles aren’t applied.</p><p>We can add some styling by adding the following to the renamed ‘<strong>src/app/bar-chart/bar-chart.component.scss</strong>’ file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9f8eface812e1cc6d6d5d6b6d835599e/href">https://medium.com/media/9f8eface812e1cc6d6d5d6b6d835599e/href</a></iframe><p>Now, when you run ‘ng serve’, you should see the bar chart. You can also notice that it is taking up the whole page. If you resize the page and refresh, you will notice that the chart changes its size accordingly.</p><h4>Using the component’s width and height</h4><p>A nice tweak would be to use the width and size of the component, so we can style the component from its parent. We can accomplish this by modifying the ‘<strong>src/app/bar-chart/bar-chart.component.scss</strong>‘ file like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/dd2335289b764d4439c43692aa1dd7d4/href">https://medium.com/media/dd2335289b764d4439c43692aa1dd7d4/href</a></iframe><p>An example use case would be to make the chart take 50% of its parent width. This is easily done by going to app.component.css and adding the following:</p><pre>app-bar-chart {<br>  width: 50%;<br>}</pre><p>This is especially useful when using grid systems, where the specific width of a chart in a column varies for almost every screen.</p><h4>Resizing dynamically</h4><p>The last tweak that we are going to make is to recreate the chart when the window is resized. This can cause a hit to performance if your chart has a lot of data, but we can manage this by throttling (which won’t be explained in this post series). This should be a relatively unfrequent event anyway.</p><p>To resize dynamically, we can modify the file ‘<strong>src/app/bar-chart/bar-chart.component.html</strong>’ like such:</p><pre>&lt;div #chart id=”chart” (window:resize)=”onResize($event)”&gt;&lt;/div&gt;</pre><p>And we can add the following method to the file ‘<strong>src/app/bar-chart/bar-chart.component.ts</strong>’ :</p><pre>onResize() {<br>  <em>this</em>.createChart();<br>}</pre><h4>Conclusion</h4><p>Integrating D3 with Angular can be extremely powerful, as D3 allows us to create amazing visualizations and Angular provides the framework to create everything else related to a web application in a scalable way. This is an example of the power of both libraries combined, as we find ourselves with a chart that can be reused easily, with the responsibility of displaying data completely isolated while still allowing us to style it and position it from its parent container. We do need to be careful when integrating the librairies since they are both modifying the DOM and can possibly alter the expected behavior. The ViewEncapsulation that is not working properly is a great example of this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b45bb8065588" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>