--- title: Set a Domain and a Range on a Scale --- # Set a Domain and a Range on a Scale --- ## Hints ### Hint 1 Use the `.domain()` and `.range()` functions. ### Hint 2 Both the the `.domain()` and `.range()` functions accept an array of two elements. --- ## Solutions The `domain` and `range` functions can be chained, and the following is the solution:
Solution 1 (Click to Show/Hide) ```html ```