let table; let width; let height; let margin; let intervals; let y_max; let x_max; let bar_width; let interval_width_px; let tick_width; let text_size; let data_points = []; let total_violent_vals = []; let pop_vals = []; let matrix_size ; let matrix_cell_width ; let matrix_cell_height ; let attributes = []; let attributes_vals = []; let no_of_Records ; function preload() { table = loadTable('county_crime.csv','csv','header') } function setup() { width = 800; height = 800; margin = 100; intervals = 10; bar_width = 20; interval_width_px = (height - 2*margin)/10; tick_width = 3; text_size = 5; matrix_size = 3; matrix_cell_width = (width - 2*margin)/matrix_size; matrix_cell_height = (height - 2*margin)/matrix_size; //original table has 117965 records; it is taking lot of //time to create scatter plot;created a variable to try with //smaller sizes no_of_Records = 1000; attributes.push('Population'); attributes.push('Totals.Violent.All'); attributes.push('Totals.Property.All'); for(var i=0;i