From a827e1c910923a25e94b001be8273de4177d21db Mon Sep 17 00:00:00 2001 From: James Hogan Date: Tue, 11 Jun 2019 17:48:11 +0100 Subject: [PATCH] Hints+Solution - 'Create a Bar for Each Data Point in the Set' (#29527) * Hints+Solution - 'Create a Bar for Each Data Point in the Set' * fix: removed stub info --- .../index.md | 45 +++++++++++++++++-- 1 file changed, 42 insertions(+), 3 deletions(-) diff --git a/guide/english/certifications/data-visualization/data-visualization-with-d3/create-a-bar-for-each-data-point-in-the-set/index.md b/guide/english/certifications/data-visualization/data-visualization-with-d3/create-a-bar-for-each-data-point-in-the-set/index.md index dffe651166f..516e81711c4 100644 --- a/guide/english/certifications/data-visualization/data-visualization-with-d3/create-a-bar-for-each-data-point-in-the-set/index.md +++ b/guide/english/certifications/data-visualization/data-visualization-with-d3/create-a-bar-for-each-data-point-in-the-set/index.md @@ -3,8 +3,47 @@ title: Create a Bar for Each Data Point in the Set --- ## Create a Bar for Each Data Point in the Set -This is a stub. Help our community expand it. +To complete this challenge, you must make use of D3's **.data()**, **.enter()**, and **.append()** methods. -This quick style guide will help ensure your pull request gets accepted. +## Hint 1 - +As with the previous challenges, make use of D3's .data() method, passing **dataset** as an argument. + +## Hint 2 + +Ensure that you follow using .data(arg) with .enter() + +## Hint 3 + +Finally, to create and add the **rect** shape, make use of the .append() method, passing "rect" as an argument. Ensure that you enclose "rect" in quotation marks. + +## Solution (!!Spoiler Alert!!) + +``` + + + +```