From a16cef51eea2a03cecb85bb9538b9aeb453bcd60 Mon Sep 17 00:00:00 2001 From: Peter Collingridge Date: Sat, 21 Jan 2017 18:34:36 +0000 Subject: [PATCH] Fix typo in Data Visualization with D3: Change Styles Based on Data: h1 -> h2 --- .../04-data-visualization/data-visualization-with-d3.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/challenges/04-data-visualization/data-visualization-with-d3.json b/seed/challenges/04-data-visualization/data-visualization-with-d3.json index fe3ebb7344..623a3f0f75 100644 --- a/seed/challenges/04-data-visualization/data-visualization-with-d3.json +++ b/seed/challenges/04-data-visualization/data-visualization-with-d3.json @@ -359,7 +359,7 @@ "
selection.style(\"color\", (d) => {
/* Logic that returns the color based on a condition */
});
", "The style() method is not limited to setting the color - it can be used with other CSS properties as well.", "

Instructions

", - "Add the style() method to the code in the editor to set the color of the h1 elements conditionally. Write the callback function so if the data value is less than 20, it returns \"red\", otherwise it returns \"green\".", + "Add the style() method to the code in the editor to set the color of the h2 elements conditionally. Write the callback function so if the data value is less than 20, it returns \"red\", otherwise it returns \"green\".", "Note
You can use if-else logic, or the ternary operator." ], "challengeSeed": [