VARIABLE sets the value of a CHART scope variable for the initialized chart.
(ID string, value float64)
| 101 | |
| 102 | // VARIABLE sets the value of a CHART scope variable for the initialized chart. |
| 103 | func (a *API) VARIABLE(ID string, value float64) { |
| 104 | v := strconv.FormatFloat(value, 'f', -1, 64) |
| 105 | _, _ = a.Write([]byte("VARIABLE CHART '" + ID + "' = " + v + "\n")) |
| 106 | } |
| 107 | |
| 108 | // END completes data collection for the initialized chart. |
| 109 | // Should be called after all SET operations are complete. |