D3 - 컴포넌트


D3 - 컴포넌트

화면에 표현될 수 있는 객체 생성(생성기는 svg안에 d값을 생성하는 것이고, 컴포넌트는 화면에 직접 들어가는 값을 생성합니다.) brush() - https://github.com/d3/d3-brush zoom() - https://github.com/d3/d3-zoom text() - axis() - https://github.com/d3/d3-axis D3의 공식 github → repositories에 들어가면 여러가지 컴포넌트와 예시코드를 볼 수 있다. 예시코드를 보면서 사용하는 것이 편하다. brush <body> <h1>확진자수 현황</h1> <div class="canvas"></div> <script> const width = 800 const height = 800 let [mt, mb, mr, ml] = [50, 50, 50, 50] const svg = d3.select('.canvas') .append('svg') .attr('width', width) .at...


#brush #D3 #zoom #컴포넌트

원문링크 : D3 - 컴포넌트