All methods will have a corresponding JavaScript function with a matching number of parameters. Thus, the Insert method will have an Insert function. This example has two values passed in that are used to populate a table of data.

PROTOTYPE.Insert = function( Value, Caption )

{     

var index = this.m_DataTable.addRow( \[Caption, Value \] );    

this.DrawChart();  

return index;

}