P1 Completed Project Post
Car crashes are never a good thing, and can put someone into serious harm or financial trouble. And while Manhattan is known for its skylines and beautiful attractions, they busy streets can cause a lot of car accidents. I wanted my visual to remind people to drive more carefully, be more aware of your surroundings, and to always make sure your are driving to the best of your ability. You can move the slider in the window to change the date of information. The information changing is the number of car accidents that happened in Manhattan on that certain day, and that is conveyed both with the number and the bar that moves.
I started with a single container, with a slider inside. The slider will make the interactivity, with the container background showing all the visuals. The slider connects to a panel chop, which connects to two different math chops. One math chop changes the slider for the x-position, and the second one changes the slider range for the date-to-crash number conversion. Both are connected to nulls for outputting.
I imported the CSV data through a table, and moved both columns through a select. One select holds the date, and outputs its select_date value to a text so it will show on the background. The second select holds the crash numbers, and moves through the rows based on the second slider null.
For the information background, I have a series of texts going into transforms so I can control their content, position, and size. Along with a movieFileIn, which holds my photo, I put them all into a composite container to be my background.
I have a TOP rectangle connected to a transform to be my changing pillar. The x-transform is connected to a chop export based from the position null. The y-scale is connected to the crash-count null chop. This makes the slider move left to right with the date, and change the size based on the number of crashes that happened during that day.
Both the previous two parts are put into a second composite where they overlap and give the full background. They are then ported into the container, and put through the window the make its own interactive section.
Data source: Manhattan Crashes
Comments
Post a Comment