hide legend for some series in flot -


Hello, I have a float chart with such a series:

  • foo
  • F / sec
  • Bar / sec

Relative values ​​are displayed as rows (per second), whereas the entire value is displayed in columns Are displayed in the form. Within the same chart is the same color of the absolute and relative of the same unit.

To empty the relative series label, however, I use labels while hovering at a point in the chain. Now the zero value is useless.

So there is a way to hide a chain in a clear story, but still set its label?

Thank you. Instead of blanking the data series label, instead of blanking the label of the data series, a labelFormatter for your legend

function (see):
  labelFormatter: function (label, series) {// series is the series object for the label / label is the original label if (showInLegend) {return label ; } And {return tap; }}  

Comments

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -