随笔分类 - D3
摘要:# Quantitative Scales var colorScale = d3.scale.quantile() .domain([d3.max(dataset) / 4, d3.max(dataset) / 2 , 3*d3.max(dataset) / 4, d3...
阅读全文
摘要:# d3.max```js var xScale = d3.scale.ordinal() .domain(dataset) .rangeBands([0,w],0.3, 0.1);```### use:```js .attr('width',...
阅读全文
摘要:how to used3.maxto normalize your dataset visually within the specific bounds of a variable domain.
阅读全文
摘要:1. svg should use 'fill' prop instead 'background-color'2. svg width & height no need 'px'3. attr(function(data_val, index){})4. create svg, d3.select...
阅读全文
摘要:Angular Scope & body{ padding-top: 50px; padding-lleft: 100px;}.bar{ display: inline-block; width: 20px; height:...
阅读全文