tradingview / lightweight-charts

Performant financial charts built with HTML5 canvas
https://www.tradingview.com/lightweight-charts/
Apache License 2.0
9.59k stars 1.64k forks source link

Multiline text renderings (of pretty much everything) #1071

Open PlkMarudny opened 2 years ago

PlkMarudny commented 2 years ago

Would you cinsider adding a multiline renderers for, well, anything? Something like this. I would like to implement time ticks with some additional elements like below:

image

edew commented 2 years ago

Hi @PlkMarudny

Yes we would consider it. We would need to think about it carefully because there might be some places in the library that assume text is on a single line.

Is adding these additional elements to the timescale your only use case for multi line text?

PlkMarudny commented 2 years ago

At the moment - yes.

Tomasz Plonka

On Tue, May 10, 2022 at 1:19 PM Edward Dewhurst @.***> wrote:

Hi @PlkMarudny https://github.com/PlkMarudny

Yes we would consider it. We would need to think about it carefully because there might be some places in the library that assume text is on a single line.

Is adding these additional elements to the timescale your only use case for multi line text?

— Reply to this email directly, view it on GitHub https://github.com/tradingview/lightweight-charts/issues/1071#issuecomment-1122141770, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBI256XAKHHJBPQKS3EHADVJIS2PANCNFSM5UUY5U6Q . You are receiving this because you were mentioned.Message ID: @.***>

edew commented 2 years ago

OK thanks.

I'll keep this issue open while we think about the implementation and gather more feedback.

teeling commented 2 years ago

I'd like to be able to use line breaks in markers. For instance, I'm plotting Buys and Sells, and it would be nice to have something like:

Buy 1250 @ $75.35

Writing it all on one line gets a bit messy. Just a thought!