d3 / d3-scale

Encodings that map abstract data to visual representation.

Home Page:https://d3js.org/d3-scale

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

scaleLine.domian([0, 0]).range([100, 0])

791106912 opened this issue · comments

if i input the same value in domain, this scale will return average of the range.

const scale = scaleLine.domian([0, 0]).range([100, 0])
scale(0) // 50

it will return 50, but I want return 100

What should i do? thank you.

I suppose there's a back-story to your question that you might want to give explicitly.