Month: June 2017

Express middleware

The middlewares are one of the most important features in Express. The middlewares are the function written with request handler function and these function will access to the request and response objects.  The middleware functions usually take three arguments,  functions that have access to the request object (req), the response object (res), and the next middleware function in the application’s request-response cycle. The next middleware function is …

Express middleware Read More »

Creating a Simple Live Chat in Express

The socket.IO enables real-time bidirectional event-based communication. It works on every platform, browser or device, focusing equally on reliability and speed. The middleware has two part. Node.js server in our case app.js where we include all our server code. Node.js client or A Javascript client library for the browser.  To create a simple chat in …

Creating a Simple Live Chat in Express Read More »

D3 module in Node JS

The D3 js open source and functional programming of Javascript.   The d3.js is JavaScript function programming that gives all the visualization support we want to have almost all in functional form. Function in Javascript are objects. Like any other object in Javascript, the function object is just a collection of name and value pair. The only …

D3 module in Node JS Read More »

D3 Bar Chart

When we are making a bar chart, we need scaleBand() function to create a band for each domain in a bar chart. In the above bar chart picture, we had use scaleBand() on the x-axis to create separate rectangle or band for each salesman.  Here we have used discrete domain value as salesman name as domain input and we used the …

D3 Bar Chart Read More »

Scroll to Top