Black Lives Matter. Please consider donating to Campaign Zero's mission of ending police violence in America.
https://www.joincampaignzero.org

Plotting arrows in 2d and 3d?

Does plotly have native support for arrows? For instance, in 2d is there an arrow object which plots an arrow shaft (line segment) together with an arrow tip (a filled triangle)? In 3d is there an arrow object which plots an arrow shaft (line segment or cylinder) with an arrow tip (a filled cone)? If not, what are alternate solutions? Obviously, it’s possible to manually construct an arrow from three line segments, but this would be rather laborious. Is it possible to write a javascript function arrow(s,t) that has input points for the source (s = [a,b] or s = [a,b,c]) and target (t = [c,d] or t = [d,e,f]) and would generate the data to plot an arrow from s to t?