d3 용어  그리고 자바스크립트 용어





Object.assign(a,b)는 a b를 결합하는 것이다.. 


------------------------------------------------------------------

map은 []array 호출하고 재구성할때 쓴다


--------------------------------------

d3.auto type

https://observablehq.com/@d3/d3-autotype


it can optionally detect common data types such as numbers, dates and booleans, and convert values to the corresponding JavaScript type.


ex) auto = d3.csv(url, d3.autoType)

------------------------------------------

fetch api 그리고 d3.csv 


d3.csv 안에는 fetch api가 있다.

------------------------------------------------


d3 reference API

https://github.com/d3/d3/blob/master/API.md


------------------------------------------------------------------------------

!

!는 not에 의미이다... not이 되었을 때 true가 된다..


4 == 6 true


.attr("text-anchor","start")

svg에서 파생된 개념 같다..

start middle end 가 있고 .... 처음 중간 마지막에서 할지 정하는 것이다..


-------------------------------------------------------------------------------------


.append("path")

그냥 선을 의미한다...

  • .append("path") is used because we really only have one data object (a set of x,y coordinates), so we do not need to selectAll(), .enter(), append() like we have with other data sets.

https://www.dashingd3js.com/svg-paths-and-d3js


ㅇㅇㅇㅇㅇ









'코딩' 카테고리의 다른 글

javascript react bootstrap: 실행이 안됨 에러  (0) 2019.03.02
javascript : this  (0) 2019.03.01
오류 error fetch api /  (0) 2019.02.28
fetch() XMLHttpRequest()  (0) 2019.02.26
react 사용법, 기본 개념  (0) 2019.02.24

+ Recent posts