very minor grammar fix (#37840)
This commit is contained in:
@ -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) => {
|
||||
|
Reference in New Issue
Block a user