Log Axis
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on May 8, 2013
This example demonstrates a log-scale axis using a hard-coded domain from 0.0124123 to 1230.4, rendering tick labels with the `",.1s"` format. The visualization uses d3.v3’s `d3.scale.log` to create the logarithmic scale and `d3.svg.axis` to draw the axis with 20 ticks. The SVG output is positioned within a larger canvas using margins, and styled with CSS for font and stroke. The code does not include a data source, as it focuses solely on the axis component.
AI-generated descriptionAn example of the axis component with the log scale, here using an arbtirary hard-coded domain.
gpl-3.0 Licensed