xLabel returns the X-axis label
()
| 255 | |
| 256 | // xLabel returns the X-axis label |
| 257 | func (pl *PlotEditor) xLabel() string { |
| 258 | if pl.Options.XAxisLabel != "" { |
| 259 | return pl.Options.XAxisLabel |
| 260 | } |
| 261 | if pl.Options.XAxis != "" { |
| 262 | cp := pl.ColumnOptions(pl.Options.XAxis) |
| 263 | if cp != nil { |
| 264 | return cp.getLabel() |
| 265 | } |
| 266 | return pl.Options.XAxis |
| 267 | } |
| 268 | return "X" |
| 269 | } |
| 270 | |
| 271 | // GoUpdatePlot updates the display based on current IndexView into table. |
| 272 | // This version can be called from goroutines. It does Sequential() on |
no test coverage detected