From 68697c00099312367896034f3f53241b93dfd1c9 Mon Sep 17 00:00:00 2001 From: The Coding Aviator <34807532+thecodingaviator@users.noreply.github.com> Date: Wed, 17 Oct 2018 22:03:24 +0530 Subject: [PATCH] Added D3 solution (#19604) * Update index.md * Update index.md --- .../style-d3-labels/index.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/guide/english/certifications/data-visualization/data-visualization-with-d3/style-d3-labels/index.md b/guide/english/certifications/data-visualization/data-visualization-with-d3/style-d3-labels/index.md index 94f7c3f1ea..b70d993ea1 100644 --- a/guide/english/certifications/data-visualization/data-visualization-with-d3/style-d3-labels/index.md +++ b/guide/english/certifications/data-visualization/data-visualization-with-d3/style-d3-labels/index.md @@ -3,8 +3,19 @@ title: Style D3 Labels --- ## Style D3 Labels -This is a stub. Help our community expand it. +### Hint 1 -This quick style guide will help ensure your pull request gets accepted. +Chain two ` style() ` method together. - +### Hint 2 + +Use ` font-family ` in the first method and ` fill ` in the second method. + +### Solution + +Add these lines to the end of the chain: + +```javascript + .style("font-size","25px") + .style("fill","red"); +```