krzysu / flot.tooltip

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

Series label, multiple arrays? #131

Closed TheConsciousness closed 9 years ago

TheConsciousness commented 9 years ago

So I currently have a file with: "upload": [ [ 1442370528823.7598, 14 ]], "download": [ [ 1442370528823.7598, 25 ]] I would like to be able to use "upload" and "download" on the tooltip depending on which point came from which set. %s is showing up as '%s', so I'm guessing that is for a parent series label. Is what I'm looking for possible?

TheConsciousness commented 9 years ago

Never mind. I found that using the "label" worked perfectly.

$.plot(plotarea , [ { label: "Physical",