I have created an applet that reads .csv files and would like the user to have the ability to load their own .csv file into my online applet. My idea is to allow the user to choose files from their local computer that will be loaded into my applet on the web. Is this possible? Disregard any issues of security.
I would like to use a hashmap to browse through a 2D array. Here is a simplified version of what I'm looking for.
HashMap hm = new HashMap;
hm.put ("Pinus", "Tree");
hm.put ("Juniper, "Tree");
hm.put ("Spore", "Herb");
hm.put ("Grass", "Weed");
hm.put ("Alge", "Marine");
hm.put ("Oak", "Tree");
hm.put ("Dandelion", "Weed");
Is there a way to get all the keys associated with Tree into some sort of array? So, Tree = Pinus, Juniper, Oak. I read up on hashmaps, but don't truly understand how to fully use them. Thank you.
I'm very new to Processing and am currently creating a program that draws line graphs from an array (generated from a csv file). From this drawing I would like to allow someone to select portions of the data to redraw on another section of the screen. This redrawing could be anything from a pie chart to bar graph of the selected portion of the array. I currently have the array drawn, but I don't know how to extract portions of the array data from my mouse selection to redraw. Any help would be greatly appreciated.
Below is my code that reads the csv file and illustrates the data. I have also begun to create my area of selection via mouse coordinates. Unfortunately I am unable to share my data (depth.csv), which hopefully won't impede any assistance I may receive. Again, thank you.