Skip to content

Commit

Permalink
started #73 wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mef committed Aug 31, 2016
1 parent 1151dd1 commit 58b32f9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
21 changes: 21 additions & 0 deletions source/_posts/pre-render-d3-js-charts-at-server-side-part-2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: Pre-render d3.js charts at server side, part 2
subtitle: 'Universal dynamic charts'
description: Demonstration of how to pre-render d3.js data visualizations at server side, and have them dynamically updated on the client.
category: engineering
language: en
author: mehdi
thumbnail: img/blog/thumbnails/2013-10-23-pre-render-d3-js-charts-at-server-side.png
scripts: [js/legacy/d3.v3.min.js, js/2016-08-31-pre-render-d3-js-charts-at-server-side-part-2.js]
prevArticle: /blog/engineering/pre-render-d3-js-charts-at-server-side/
date: 2016-08-31
---

<p><a href="http://d3js.org/" target="_blank">d3.js</a> is one of the best things that happened to data visualization on the web: full-featured, robust, and customizable...</p>

<p>As it is usually used in browser environments, there are some benefits in using it on servers. In the <a href="">first article of this series</a>, we saw why and how pre-rendering charts on the server was interesting.</p>

<p>The main goal is to do the heavy-lifting on the server in order to reduce page load time and other burden for the website visitors, while keeping all the power offered by d3.js, in terms of interactions in the browser.</p>

<p>In this follow-up post we'll expand the concept so that it's possible to <strong>update the chart in the client</strong>, by re-using the server-generated data binding on the client</p>.

5 changes: 2 additions & 3 deletions source/_posts/pre-render-d3-js-charts-at-server-side.html
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
---
title: Pre-render d3.js charts at server side
subtitle: 'part1: proof-of-concept'
excerpt: ttt
description: How to pre-render d3.js data visualizations at server side, using jsdom node.js module. This is useful to support large graphics on slow machines.
category: engineering
date: 2013-10-23
language: en
author: mehdi
thumbnail: img/blog/thumbnails/2013-10-23-pre-render-d3-js-charts-at-server-side.png
scripts: [js/legacy/d3.v3.min.js, js/2013-10-23-pre-render-d3-js-charts-at-server-side.js]
nextArticle: /blog/engineering/pre-render-d3-js-charts-at-server-side-part-2/
date: 2013-10-23
---


<p>This guide explains how to use <a href="http://d3js.org/" target="_blank">d3.js</a> on the server to pre-render data-visualization, which will be used client-side.</p>

<p>The main goal here is to do the heavy-lifting on the server in order to reduce page load time and other burden for the website visitors, while keeping all the power offered by d3.js, in terms of interactions on the browser.</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
d3.selectAll('#paintOrange').on('click', function() {
d3.select('#targetCircle').transition().attr('fill', '#f9af26')
return false;
})

0 comments on commit 58b32f9

Please sign in to comment.