d3.jsApproaches to create responsive d3.js charts


Syntax

  • var width = document.getElementById('chartArea').clientWidth;
  • var height = width / 3.236;
  • window.onresize = resizeFunctionCall;