How to use the _textOverflow_ property in a mark’s implicit _tip_? #2460
|
The tip mark’s documentation says:
The linked text options specify:
This leads me to assume that the following plot should only show the last few characters of the dates in the tooltip Plot.plot({
marks: [
Plot.dot(gistemp, {x: "Date", y: "Anomaly"}),
Plot.tip(gistemp, Plot.pointer({x: "Date", y: "Anomaly", lineWidth:7, textOverflow: 'ellipsis-start'}))
]
})However, it seems that no matter what value I specify for textOverflow, the result is always equivalent to ellipsis-end: If I don’t specify a textOverflow at all, the tooltip is rendered the same way, even though the text options say (emphasis mine)
|
Replies: 1 comment 1 reply
|
The explanation is given above: "When using the title channel, the tip mark wraps text". Could we have a better copy where we say "input text values"? |

The explanation is given above: "When using the title channel, the tip mark wraps text". Could we have a better copy where we say "input text values"?