Posts tagged as:

javascript

This JavaScript code adds the functionality to transpose a two-dimensional JavaScript array (array within array). Transposing, in simple terms, is to interchange rows and columns of a matrix (two-dimensional array).

It also extends jQuery to allow transposing of arrays using common jQuery syntax.

Continue reading

{ 1 comment }

FusionCharts Flash charting suite has an amazing integration with JavaScript. It allows charts to be created using JavaScript, raises appropriate JavaScript events, allows charts to be updated using its simple JavaScript API and a lot more. There is a blog post on FusionCharts blog, describing the same.

Continue reading

{ 1 comment }

Chart Type Aliases for FusionCharts DOM

Technical Publications
Thumbnail image for Chart Type Aliases for FusionCharts DOM

FusionCharts DOM uses an alias, instead of SWF file names, for every chart type. This is done to address certain issues in order to improve usability:

December 9, 2009 0 comments

JavaScript Optimization – Destructive Vs Indexed Array Iteration

Technical Publications

In number of JavaScript applications, developers are found to use destructive array iteration for the sake of readability and simplicity of codes. However, usage of the same is not always conducive towards the performance of the code.

November 22, 2009 1 comment

Convert FusionCharts Data-XML To JavaScript Array

Technical Publications
Thumbnail image for Convert FusionCharts Data-XML To JavaScript Array

This is a snippet of JavaScript that would allow you to easily retrieve all “set” values from a FusionCharts data-XML in form of an Array.
One can use it to perform various mathematical or visual operations by retrieving the data-XML from FusionCharts object using the getXMLData() method and then passing on the same to this function.

November 14, 2009 0 comments

String Reversing Algorithm Performance In JavaScript

Technical Publications

Wherever performance is the key factor, choosing the right algorithm, (in a very unbiased fashion,) is a very crucial factor. And generally for reversing string in JavaScript applications, I endorse this petite string reversal algorithm using Array.reverse() method.

September 24, 2009 0 comments

Fast Algorithm To Find Unique Items in JavaScript Array

Technical Publications
Thumbnail image for Fast Algorithm To Find Unique Items in JavaScript Array

When I had the requirement to remove duplicate items from a very large array, I found out that the classic method to be not optimized as it took a pretty long time than desired. So, I devised this new algorithm that can sort a large array in a fraction of the original time.

September 6, 2009 6 comments

Generating Pareto Chart Data for FusionCharts

Technical Publications
Thumbnail image for Generating Pareto Chart Data for FusionCharts

As soon as I read about Pareto Charts on FusionCharts blog and how it uses cumulative percentage on a dual-y axes graph to allow users to summarize data into segments, I realized that a simple script to generate the FusionCharts XML would help users generate such graphs.
For those who do not know what is FusionCharts, [...]

August 26, 2009 2 comments

Analytics jQuery Plugin 2.0 Supports Full Tracking API

Technical Publications
Google Analytics jQuery Plugin

Updated Google Analytics jQuery plugin to version 2.0 and it now is the only jQuery plugin that supports full tracking API of Google. Apart from enhanced loading of ga.js file, there is a lot more that users can now do with this plugin.

August 24, 2009 0 comments

How To Design a Good API

Technical Publications

If you have not have already read the characteristics of a good API, you may do so in “Why To Design a Good API.”
As discussed in the above-mentioned article, API is almost permanent and once distributed, should not be modified. You have got one chance to make it right.

July 28, 2009 0 comments