VISUALIZATION

DATA VISUALIZATION: Bar Graph and Line Graph

01 September 2023

Author: Louis Monawe


Purpose of Bar Graph:

Bar Graph

Purpose of Bar Graph:

  • The bar graph displays the number of asteroids approaching Earth on specific dates within a given time range. It provides a visual representation of how the asteroid count varies across different dates.

Interactive features

  • Tooltip: When hovering over a bar, a tooltip displays the date and the count of asteroids for that specific date. The tooltip is positioned just below the graph title for visibility.
  • When hovering over a certain bar, the bar changes colour enhancing visibility and the tooltip appears.
  • Responsive Design: The graph is responsive and adjusts to different screen sizes.

Style Guide

  • Color: Each bar is colored with a unique shade for better differentiation, and when you hover over any bar, it changes colour to a darkish purple, enhancing visibility and differentiation.
  • Title: The graph title, "Number of Asteroids Approaching Earth on Specific Dates," is displayed at the top for context.
  • Axes: The x-axis represents the dates, and the y-axis represents the number of asteroids, and they are clearly labelled to enhance understanding.
  • Font Size: Font size for axis labels and tooltips is set to 12px for readability.

Line Graph: Number of Asteroids Approaching Earth on Specific Dates

Purpose of Line Graph:

Interactive features

Style Guide