krzysu / flot.tooltip

tooltip plugin for wonderful Flot plotting library
https://github.com/krzysu/flot.tooltip
187 stars 153 forks source link

Location of tooltip #76

Closed fcops closed 10 years ago

fcops commented 10 years ago

I tried tooltip for a flot in a modal window of bootstrap 2.x. The tooltip was hidden by the modal window.

Could the tooltip div be appended to the flot's parent, or use a container object like flot's legend container?

krzysu commented 10 years ago

tooltip has it's own ID #flotTip that you can use for styling. Try to make z-index value bigger than bootstrap modal window and it should work. Let me know if works.

fcops commented 10 years ago

A z-index of 1060 worked. As for the other question, could it be shown not as a tooltip but in a fixed place outside the plot like you can do with the legend? I think it's an interesting feature. Thanks.

krzysu commented 10 years ago

probably you can overwrite position in CSS with !important, but if I were you, I would dig into the source of the plugin and disable positioning of it, i.e. comment out this line https://github.com/krzysu/flot.tooltip/blob/master/js/jquery.flot.tooltip.source.js#L100

krzysu commented 10 years ago

ok, if nothing more to add here, then I close this issue.