markrcote / flot-tickrotor

Flot plugin to display angled X-axis tick labels. This repo is unmaintained in part due to flot being in a similar situation.
23 stars 39 forks source link

plothover needs access to xaxis.ticks #8

Closed ebuychance closed 10 years ago

ebuychance commented 10 years ago

How can I get the ticks' labels for the flot hover event??

xaxis.ticks is obviously empty after calling rotateTicks..

Thanks

caca9512 commented 10 years ago

I agree with ebuychance, why ticks property is empty... can you provide property for retrieve label in item?

markrcote commented 10 years ago

Hm yeah we have to clear that property so that flot itself doesn't display the ticks over top of the rotated ticks created by the plugin. I'll have to think about this.

markrcote commented 10 years ago

Ticks now exposed now as xaxis.rotatedTicks. I will file an issue with flot core to provide a suitable hook so I don't require this hack; the display routine of ticks should be separate from their values.

ebuychance commented 10 years ago

:+1: :beers: