very minor grammar fix (#37840)

This commit is contained in:
Stryyder
2019-11-26 15:53:18 -08:00
committed by Randell Dawson
parent ba415184f6
commit 58444af093

View File

@ -8,7 +8,7 @@ forumTopicId: 301479
## Description
<section id='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 <code>style()</code> method to change the styling for different elements.
For example, you may want to color a data point blue if has a value less than 20, and red otherwise. You can use a callback function in the <code>style()</code> method and include the conditional logic. The callback function uses the <code>d</code> parameter to represent the data point:
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 <code>style()</code> method and include the conditional logic. The callback function uses the <code>d</code> parameter to represent the data point:
```js
selection.style("color", (d) => {