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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -