Question
Can anyone please help me create a multiline graph using D3 for javascript that has the xaxis as the year and the yaxis as the
Can anyone please help me create a multiline graph using D3 for javascript that has the xaxis as the year and the yaxis as the total number of shootings that occur for that year. The lines should represent each state and as you hover over the line the extra information from the csv file should be displayed if possible. Thank you!
Date,State,School,TotalVictims,VictimsGender,SchoolType,Day,ShotsFired,Firearm,Shooters 2/6/1970,OH,John F. Kennedy High School,1,Male,High,Fri,4,Handgun,1 3/23/1970,CA,David Starr Jordan High School,2,Male,High,Mon,,Handgun,2 5/8/1970,FL,Carver High School,1,Male,High,Fri,1,Handgun,1 8/28/1970,TX,Riverside High School,1,Male,High,Fri,,Handgun,2 8/31/1970,FL,Allapatah Elementary School,1,Male,Elementary,Mon,,Rifle,1 9/14/1970,TN,Hamilton High School,3,Male,High,Mon,,Rifle,1 10/5/1970,MI,Pontiac Central High School,4,Male,High,Mon,,Handgun, 10/19/1970,TN,Booker T. Washington High School,1,Male,High,Mon,,Handgun,1 10/20/1970,TN,Washington Junior High School,1,Male,Junior High,Tue,1,Handgun,1 10/27/1970,OH,Appleseed Junior High School,1,Male,Junior High,Tue,1,Handgun,1 11/20/1970,IL,Harlan High School,2,Both,High,Fri,,Handgun,1 12/12/1970,WI,Xavier High School,1,Male,High,Sat,1,Handgun, 2/2/1971,PA,Morris E. Leeds Middle School,1,Male,Middle,Tue,1,Handgun,1 2/5/1971,PA,John F. Kennedy High School,1,Male,High,Fri,,Handgun,1 2/10/1971,TX,Oak Cliff High School,2,Unknown,High,Wed,2,Shotgun,1 2/25/1971,OH,Franklin D. Roosevelt Junior High School,1,Male,Junior High,Thu,5,Rifle,1 4/5/1971,PA,William Penn High School,1,Female,High,Mon,5,Handgun,1 5/27/1971,MI,Benton Harbor High School,1,Male,High,Thu,1,Handgun,1 6/2/1971,NY,East Aurora Middle School,1,Male,Middle,Wed,1,Handgun,1 8/20/1971,PA,Monessen High School,1,Male,High,Fri,,Handgun,1 9/9/1971,TX,Dunbar High School,1,Male,High,Thu,10,Handgun,1 9/24/1971,NY,McKinley Vocational High School,1,Male,High,Fri,,Handgun,1 12/6/1971,CA,Louis Stevenson Junior High School,4,Both,Junior High,Mon,,Handgun,2 1/24/1972,OH,Stow High School,1,Male,High,Mon,1,Handgun,1 2/14/1972,IL,Camlumet High School,1,Male,High,Mon,,Handgun, 2/15/1972,IL,Kenwood High School,1,Male,High,Tue,,Handgun, 2/28/1972,CA,Markham Junior High School,1,Male,Junior High,Mon,1,Handgun,1 3/13/1972,TX,Unnamed Junior High School,1,Male,Junior High,Mon,1,Handgun,1 9/14/1972,TX,Francis Scott Key Junior High,1,Male,Junior High,Thu,,Handgun,1 9/15/1972,MI,Saginaw High School,2,Male,High,Fri,,Unknown,1 9/19/1972,TX,Cullen Junior High,1,Female,Junior High,Tue,9,Handgun,1 9/21/1972,OH,Thorton Junior High,1,Female,Junior High,Thu,1,Handgun,1 11/11/1972,CA,Jefferson High School,5,Both,High,Sat,5,Unknown,2 11/27/1972,MI,Pontiac Central High School,5,Both,High,Mon,,Unknown,1 11/29/1972,FL,Miami Northwest High School,1,Male,High,Wed,,Unknown,1 1/5/1973,NC,South Iredell High School,4,Both,High,Fri,5,Handgun,1 1/31/1973,NC,Cumming High School,1,Male,High,Wed,1,Handgun,1 4/5/1973,CA,Locke High School,2,Male,High,Thu,5,Handgun,1 5/1/1973,OH,Rayen High School,3,Both,High,Tue,,Handgun,1 9/28/1973,CA,Wilson High School,4,Both,High,Fri,3,Handgun,1 10/2/1973,IL,Elmhurst Wood Park Community High School,2,Female,High,Tue,5,Handgun,1 10/23/1973,OH,Barberton High School,1,Male,High,Tue,3,Handgun,1 11/8/1973,IL,Woodell Phillips High School,1,Male,High,Thu,1,Handgun,1 11/9/1973,CA,Long Beach Polytechnic High School,2,Female,High,Fri,3,Unknown, 12/6/1973,CA,Fremont High School,1,Male,High,Thu,1,Handgun,1 12/13/1973,OH,Hughes High School,1,Male,High,Thu,3,Handgun,1 1/17/1974,IL,Barton Elementary School,4,Male,Elementary,Thu,,Multiple Handguns,1 1/22/1974,CA,Locke High School,1,Male,High,Tue,5,Unknown,1 2/7/1974,CA,James Madison Junior High School,2,Male,Junior High,Thu,,Handgun,1 5/10/1974,TN,Church Hill High School,1,Male,High,Fri,2,Handgun,1 5/19/1974,FL,Highlands Elementary School,0,No Victims,Elementary,Sun,,Rifle,1 9/23/1974,CA,Jefferson High School,1,Male,High,Mon,5,Handgun, 9/25/1974,CA,San Fernando High School,1,Male,High,Wed,,Handgun,1 12/18/1974,CA,Manual Arts High School,2,Male,High,Wed,,Handgun,1 12/30/1974,NY,Olean High School,14,Both,High,Mon,50,Combination of Different Types of Weapons,1 2/7/1975,NY,Board of Cooperative Educational Services,1,Male,Other,Fri,1,Handgun,1 3/12/1975,TX,Jones High School,2,Male,High,Wed,,Handgun, 3/21/1975,OH,Patterson Cooperative High School,1,Male,High,Fri,1,Handgun,1 5/27/1975,MI,Pitcher School,1,Male,Other,Tue,1,Rifle,1 7/9/1975,IL,Dett Elementary School,1,Female,Elementary,Wed,2,Unknown,1 10/24/1975,GA,Murphy High School,1,Male,High,Fri,1,Handgun,1 12/18/1975,CA,Orange High School,1,Male,High,Thu,1,Rifle,1 1/23/1976,OH,Columbus Central High School,2,Both,High,Fri,2,Handgun,1 2/6/1976,FL,Escambia High School,4,Male,High,Fri,,Unknown, 2/12/1976,MI,Murray-Wright High School,5,Male,High,Thu,,Handgun,2 4/12/1976,TX,O. D. Wyatt High School,2,Male,High,Mon,,Handgun,1 5/14/1976,FL,Palm Beach Gardens High School,1,Male,High,Fri,3,Handgun,1 9/20/1976,NC,Guildord County School Bus,2,Both,Other,Mon,2,Shotgun,1 11/10/1976,MI,Burt Elementary School,1,Female,Elementary,Wed,4,Handgun,1 1/13/1977,IL,Old Main Eisenhower High School,1,Male,High,Thu,1,Handgun,1 2/9/1977,IL,Fenger High School,4,Both,High,Wed,,Handgun,1 2/28/1977,TX,Horace Mann Junior High School,1,Male,Junior High,Mon,1,Handgun,1 3/8/1977,IL,Collinsville High School,2,Both,High,Tue,2,Handgun,1 3/21/1977,NY,Parochial School,0,No Victims,Other,Mon,,Rifle,1 4/7/1977,TX,Whitharral High School,1,Male,High,Thu,3,Handgun,1 4/18/1977,TN,Pioneer Christian Academy,1,Male,Other,Mon,,Handgun,1 5/17/1977,FL,Stone Middle School,0,Unknown,Middle,Tue,,Rifle,1 6/22/1977,IL,Holy Trinity High School,2,Male,High,Wed,,Unknown, 7/11/1977,CO,South Junior High School,1,Male,Junior High,Mon,1,Handgun, 12/9/1977,CA,Petaluma McNear Elementary,0,Female,Elementary,Fri,3,Handgun,1 12/12/1977,FL,West Orange High School,1,Male,High,Mon,,Handgun,1 2/22/1978,MI,Everett High School,2,Male,High,Wed,,Handgun,1 3/9/1978,CA,Monroe Elementary School,1,Male,Elementary,Thu,1,Rifle,1 3/29/1978,TN,Gallatin Junior High School,1,Male,Junior High,Wed,,Handgun,1 4/14/1978,MI,Fordson High School,1,Male,High,Fri,,Handgun,1 4/26/1978,TX,Paul Dunbar Elementary School,1,Male,Elementary,Wed,3,Handgun,1 4/28/1978,IL,Ridgewood High School,4,Male,High,Fri,,Handgun,1 5/18/1978,TX,Murchison Junior High School,1,Male,Junior High,Thu,3,Rifle,1 5/19/1978,PA,Downtown Junior High School,8,Both,Junior High,Fri,,Multiple Rifles, 11/29/1978,NY,Park West High School,1,Male,High,Wed,1,Handgun,1 1/29/1979,CA,Grover Cleveland Elementary School,11,Both,Elementary,Mon,,Rifle,1 3/14/1979,FL,McArthur High School North,1,Male,High,Wed,1,Handgun,1 3/28/1979,CA,Los Angeles High School,1,Female,High,Wed,1,Handgun,1 4/16/1979,WI,Wisconsin Lutheran High School,1,Male,High,Mon,3,Shotgun,1 4/25/1979,PA,Martin L. Mattei Junior High School,1,Male,Junior High,Wed,1,Rifle,1 4/26/1979,TX,Azle Junior High School,1,Male,High,Thu,1,Handgun,1 6/14/1979,OH,New Carlisle Elementary School,1,Male,Elementary,Thu,1,Handgun,1 11/30/1979,TX,Not listed,1,Female,Unknown,Fri,1,Handgun,1
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started