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 attributes = []; let attributes_vals = []; let no_of_Records ; let data_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; //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 = 200; attributes.push('Population'); attributes.push('Totals.Violent.All'); attributes.push('Totals.Violent.Assault'); attributes.push('Totals.Violent.Murder'); attributes.push('Totals.Violent.Rape'); attributes.push('Totals.Violent.Robbery'); for(var i=0;i