Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Clarify specifying the stroke attribute for symbolsStroke#3814

Open
Sei4or wants to merge 2 commits intod3:mainfrom
Sei4or:patch-1
Open

Clarify specifying the stroke attribute for symbolsStroke#3814
Sei4or wants to merge 2 commits intod3:mainfrom
Sei4or:patch-1

Conversation

@Sei4or
Copy link

@Sei4or Sei4or commented Jan 18, 2024

While working with symbols I found out that it was unclear why my stroke symbols would not appear. I see in the example that the stroke attribute has to be explicitly passed. Adding a statement near the code would make sure it is clear.

}' />

[Source](https://github.com/d3/d3-shape/blob/main/src/symbol.js) · An array containing a set of symbol types designed for stroking: [circle](#symbolCircle), [plus](#symbolPlus), [times](#symbolTimes), [triangle2](#symbolTriangle2), [asterisk](#symbolAsterisk), [square2](#symbolSquare2), and [diamond2](#symbolDiamond2). Useful for a categorical shape encoding with an [ordinal scale](../d3-scale/ordinal.md).
** Be aware that by default SVG paths stroke attribute is set to none. By not specifying the stroke the symbols will be invisible. **

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
** Be aware that by default SVG paths stroke attribute is set to none. By not specifying the stroke the symbols will be invisible. **
** Please note that by default, the `stroke` attribute of SVG paths is set to "none." If the stroke is not specified, the symbols will be invisible. **

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested a small rephrase for clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants