Supersedes #176. I adjusted the implementations proposed by @hemanrobinson for style, and to fit empirically the behavior of symbolCircle when using a stroke width of 1.5px and round line caps. (See notebook.) I also updated some old D3 code for modern JavaScript style. Adds the following new symbols:
symbolAsterisk
symbolDiamond2
symbolPlus
symbolSquare2
symbolTriangle2
symbolX
In addition, adds two new sets of symbols:
symbolsFill
symbolsStroke
The symbolsFill is equivalent to and replaces symbols, which is now deprecated.
I considered the following alternative names:
symbolTimes instead of symbolX
symbolCross2 instead of symbolPlus
symbolSquare3 instead of symbolDiamond2
Ultimately I don’t think the names matter too much as I expect most often the symbols will be chosen automatically automatically by Plot (using symbolsStroke—though we could perhaps make Plot smart enough to chose symbolsStroke or SymbolsFill depending on whether a fill or stroke channel is present).
Supersedes #176. I adjusted the implementations proposed by @hemanrobinson for style, and to fit empirically the behavior of symbolCircle when using a stroke width of 1.5px and round line caps. (See notebook.) I also updated some old D3 code for modern JavaScript style. Adds the following new symbols:
In addition, adds two new sets of symbols:
The symbolsFill is equivalent to and replaces symbols, which is now deprecated.
I considered the following alternative names:
Ultimately I don’t think the names matter too much as I expect most often the symbols will be chosen automatically automatically by Plot (using symbolsStroke—though we could perhaps make Plot smart enough to chose symbolsStroke or SymbolsFill depending on whether a fill or stroke channel is present).
TODO