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

How to maintain current label color? #19

Open toni-moreno opened 8 years ago

toni-moreno commented 8 years ago

Hi @markrcote . I'm trying to add your wonderfull plugin to grafana , that uses flot, as I suggest in the following issue.( https://github.com/grafana/grafana/issues/3591)

When doing I found that the plugin changes the label color.

This is when no rotor applied.

image

And here when rotor is applied.

image

There is any way to maintain the current label style color?

toni-moreno commented 8 years ago

This is the html code when no tickRotor applied.

image

But any other tag class=flot-tick-label when applied.

image

Can you help me please?

toni-moreno commented 8 years ago

I've finally solved this by querying current flot-text styles. I'll will do a PR in next days to fix this issue.

Thank you for your great job!!