Skip to main content
100%

xAxis with time series

✓ Published0🌍 Public
IIan
Last edited Mar 9, 2023
Created on Mar 9, 2023
Forked from Customizing Axes

This visualization demonstrates a time series x-axis using D3 v5, displaying hourly timestamps from an InfluxDB CSV dataset loaded via d3.csv. The code constructs a time scale with d3.scaleTime, parses ISO date strings into JavaScript Date objects, and renders a customized bottom axis using d3.axisBottom with a tick format showing month, day, hour, minute, and second. The SVG chart is 5000 pixels wide, and the axis features long tick marks with the domain line removed.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes