Scripting

How to handle Global Variable scope issue in JavaScript

Posted on Updated on

One of the major problem with JavaScript is the leakage of scope and which leads to various issues as such variable name conflict. One of the best practice of JavaScript is to use to one global object variable and dynamically add variables to it or defines the variable as object property. This will restrict the variable scope and will help limit scope leakage. This way variables are restricted to one Global Variable scope.
Read the rest of this entry »

Doughnut Chart in AngularJS using ChartJS

Posted on

A set of data are better understood when represented graphically, there are various ways to represent data, out which Doughnut Chart is one of them. The chart can be implemented using AngularJS.

AngularJS uses Chart.js as a dependency to create given chart, which imparts responsiveness and provides various other flexibility, which we’ll see them going further. Other implementation of Chart are

  1. Pie Chart
  2. Bar Chart
  3. Horizontal Bar Chart
  4. Line Chart

Read the rest of this entry »

Horizontal Bar Chart in AngularJS using ChartJS

Posted on Updated on

A set of data are better understood when represented graphically, there are various ways to represent data, out which Horizontal Bar Chart is one of them. The chart can be implemented using AngularJS.

AngularJS uses Chart.js as a dependency to create given chart, which imparts responsiveness and provides various other flexibility, which we’ll see them going further. Other implementation of Chart are

  1. Pie Chart
  2. Doughnut Chart
  3. Bar Chart
  4. Line Chart

Read the rest of this entry »

Bar Chart in AngularJS using ChartJS

Posted on Updated on

A set of data are better understood when represented graphically, there are various ways to represent data, out which Bar Chart is one of them. The chart can be implemented using AngularJS.

AngularJS uses Chart.js as a dependency to create given chart, which imparts responsiveness and provides various other flexibility, which we’ll see them going further. Other implementation of Chart are

  1. Pie Chart
  2. Doughnut Chart
  3. Horizontal Bar Chart
  4. Line Chart

Read the rest of this entry »