diff --git a/challenges/04-data-visualization/data-visualization-with-d3.json b/challenges/04-data-visualization/data-visualization-with-d3.json index a0fc921e607..b1c400676f5 100644 --- a/challenges/04-data-visualization/data-visualization-with-d3.json +++ b/challenges/04-data-visualization/data-visualization-with-d3.json @@ -1437,7 +1437,7 @@ ], "description": [ "By default, scales use the identity relationship - the input value maps to the output value. But scales can be much more flexible and interesting.", - "Say a data set has values ranging from 50 to 480. This in the input information for a scale, and is also known as the domain.", + "Say a data set has values ranging from 50 to 480. This is the input information for a scale, and is also known as the domain.", "You want to map those points along the x axis on the SVG canvas, between 10 units and 500 units. This is the output information, which is also known as the range.", "The domain() and range() methods set these values for the scale. Both methods take an array of at least two elements as an argument. Here's an example:", "
// Set a domain
// The domain covers the set of input values
scale.domain([50, 480]);
// Set a range
// The range covers the set of output values
scale.range([10, 500]);
scale(50) // Returns 10
scale(480) // Returns 500
scale(325) // Returns 323.37
scale(750) // Returns 807.67
d3.scaleLinear()
", @@ -1801,4 +1801,4 @@ "translations": {} } ] -} \ No newline at end of file +}