/**
 * Set chart values sufix.
 *
 * @param string $value Sufix value.
 *
 * @return self Returns instance of the Chart class.
 *
 * @access public
 */
public function valuesSufix(string $value): self

Examples

Set Chart element type showValues using fluent interface

use function Thermage\chart;
use function Thermage\render;

// ...

$data = [
    'apple' => [
        'label' => 'Apple',
        'value' => 100,
        'color' => 'red',
    ],
    'orange' => [
        'label' => 'Orange',
        'value' => 270,
        'color' => 'orange',
    ],
    'lime' => [
        'label' => 'Lime',
        'value' => 220,
        'color' => 'green',
    ],
];

render(
  chart()->data($data)->showValues()->valuesSufix('items')
);
Terminal
$ php thermage.php
Apple(100items)
Orange(270items)
Lime(220items)