HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.45k stars 528 forks source link

Mouse tracker legend not shown in the configured container #227

Open acs opened 11 years ago

acs commented 11 years ago

In this example

http://jsfiddle.net/u8Uj3/1

the mouse tracker legend not shown in the configured container "mouseLegend".

cesutherland commented 11 years ago

It is, actually! That feature was originally added to compensate for overflow of the mouse tracker, letting someone use the document.body or some other configured element, but still display the tracker over the graph.

I've added a new feature to turn off positioning of the tracker:

{
  mouse : {
    track : true,
    position : false
  }
}

That should work fine with the container option, allowing you to put the tracker wherever you want on the page.