graphic icon indicating copy to clipboard operation
graphic copied to clipboard

Dynamic ticks

Open LucaCras opened this issue 2 years ago • 4 comments

When specifying a tick count or list of ticks, these are static and do not update on zooming/scaling. This results in ugly axes with overlapping labels when zooming out (or very scarce/empty axes when zooming in).

I was thinking that adding an option for automatically hiding, skipping, or adding labels based on the scale or coord would solve this. Other chart libraries often have implementations for this.

I have added an image below for reference.

image

LucaCras avatar Apr 12 '22 16:04 LucaCras

This is a rather troublesome issue. It involves scale, coord zoom ratio. I am think about improving it but it takes time.

Meanwhile, I suggest you to control it with tickCount or you can dynamically calculate it with gesture signals. That's a temporary verbose solution but it may work.

entronad avatar Jun 08 '22 00:06 entronad

Meanwhile, I suggest you to control it with tickCount or you can dynamically calculate it with gesture signals. That's a temporary verbose solution but it may work.

If I dynamically calculate it, do I have to rebuild the whole widget?

Belligerator avatar Jul 08 '22 15:07 Belligerator

Meanwhile, I suggest you to control it with tickCount or you can dynamically calculate it with gesture signals. That's a temporary verbose solution but it may work.

If I dynamically calculate it, do I have to rebuild the whole widget?

Maybe not, you can have a try.

entronad avatar Jul 11 '22 05:07 entronad

This is a rather troublesome issue. It involves scale, coord zoom ratio. I am think about improving it but it takes time.

Meanwhile, I suggest you to control it with tickCount or you can dynamically calculate it with gesture signals. That's a temporary verbose solution but it may work.

Hey @entronad, any update on this?

LucaCras avatar Oct 10 '22 12:10 LucaCras