See how the highway and city mileages compare for major car brands. Click on the buttons to explore each category.
Hover over each engine cylinder category in the legend to better understand the trend. Additionally, hovering over each data point itself will indicate which make of the car you are hovering over via an interactive tooltip.
This visualization shows us the relationship between all three fields: fuel type, engine cylinder, and average MPG. The size of the plotted point indicates the mileage, while the density represents the relative value of the cars that fall into that configuration of fuel type and cylinder number.
This is a narrative visualization created for the CS 498 Data Visualization course. Overview: The above visualization utilizes the slideshow narrative visualization technique, while incorporating hybrid elements of the drill-down technique. Each slide contains guidance on how to interact with the visualization. The structure of the slides guides users from one idea to the next, but there is still room for individual exploration at each stage. We accomplish visual consistency by maintaining uniform elements throughout, introducing a mixture of text, image and chart elements, and having meaningful colors.
The scenes themselves are constructed via HTML id tags. Each scene has a unique id that is linked via the buttons.The “Next/Previous” buttons allow users to navigate from scene to scene independently, but the structure helps guide the overall narrative. Each scene is composed of a unique chart that highlights its own distinct message.
Annotations remain consistent on the charts, even throughout changes triggered by the interactions. This allows the user to have some grounding on the overall message the visualization is trying to communicate. For example, the annotation about a relatively good gas mileage stays consistent throughout the vis transformation from highway mileage to city mileage. This can help a user better understand which car makes consistently have good mileage across both parameters.
The visualizations have a handful of relevant parameters that help the user better explore the data. By interacting with JavaScript input features, such as the toggle buttons or the interactive legend in vis2, the user can choose to see data about a specific category, or even filter out the datapoints by hovering over specific engine cylinder categories. The user input is used as a parameter that controls what the visualization portrays.
The triggers are implemented via events and callbacks, such as “mouseover”, “mouseout” and “click”. When specific html elements experience these events, the callback function is invoked, and we can change the visualization with respect to the action indicated by the trigger. The example triggers we have here are the buttons and hovering legend.
Listed here are the various sources I used for learning about D3. Elements of this visualization are drawn from the examples cited below.