From 335044fecef6271cf0eeac4b28b9d64a4e777b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20B=C4=85ba?= Date: Thu, 9 Feb 2023 05:59:05 +0100 Subject: [PATCH] fix(curriculum): delete repeated sentence on data visualization with D3 project (#49275) delete repeated sentence --- .../data-visualization-with-d3/change-styles-based-on-data.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/change-styles-based-on-data.md b/curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/change-styles-based-on-data.md index 1ed6ae7d5e2..8e2005e381f 100644 --- a/curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/change-styles-based-on-data.md +++ b/curriculum/challenges/english/04-data-visualization/data-visualization-with-d3/change-styles-based-on-data.md @@ -8,8 +8,7 @@ dashedName: change-styles-based-on-data # --description-- -D3 is about visualization and presentation of data. It's likely you'll want to change the styling of elements based on the data. You can use a callback function in the `style()` method to change the styling for different elements. - +D3 is about visualization and presentation of data. It's likely you'll want to change the styling of elements based on the data. For example, you may want to color a data point blue if it has a value less than 20, and red otherwise. You can use a callback function in the `style()` method and include the conditional logic. The callback function uses the `d` parameter to represent the data point: ```js