This example shows one way to make responsive density-based linear axes using D3 4.0 and ReactiveModel. Combines Margin Convention II with ReactiveModel with Density-based Ticks. To experience the resize behavior, run this example full-screen and resize the browser.
https://d3js.org/d3.v4.0.0-alpha.49.min.js
https://datavis-tech.github.io/reactive-model/reactive-model-v0.11.0.min.js