observablehq / plot

A concise API for exploratory data visualization implementing a layered grammar of graphics
https://observablehq.com/plot/
ISC License
4.16k stars 171 forks source link

Fix Axis Tick Vector to Axis Tick Line #2055

Closed Stroked closed 3 months ago

Stroked commented 3 months ago

Axis uses Tick and Tick uses Line.

In the docs for Axis, there is repeated use of the term vector. Since, vector is also a mark type, it is kinda confusing.

mbostock commented 3 months ago

The axis mark indeed does use the vector mark (not the line mark) to render ticks, as you can see from the implementation:

https://github.com/observablehq/plot/blob/943526511c163ef9ad6afd2031b073b97fdacc6e/src/marks/axis.js#L282

So these proposed edits are not correct.

Stroked commented 3 months ago

ah, I see.

How does the vector turn off the pointer?

For the arrow mark, there is headLength. For the vector, is the draw function the only way?