Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Use Dynamic Scales

d3.scaleLinear()
    .domain([0, d3.max(dataset, (d) => d[1])])
    .range([h - padding, padding])

// That's all you need to do
 
PREVIOUS NEXT
Tagged: #Use #Dynamic #Scales
ADD COMMENT
Topic
Name
7+5 =