/** * Pass in some text for each label. This can contain magic variables "#val#" which * will get replaced with the value for that Y axis label. Useful for: * - "£#val#" * - "#val#%" * - "#val# million" * * @param $text as string. */ function set_label_text($text) { $tmp = new y_axis_labels(); $tmp->set_text($text); $this->labels = $tmp; }