/**
 * Set spark data.
 *
 * @param array $data Data with numbers.
 *
 * @return self Returns instance of the Spark class.
 *
 * @access public
 */
public function data(array $data): self

Examples

Simple example of usage Spark element.

use function Thermage\spark;
use function Thermage\render;

// ...

$data = [0,30,55,80,33,150];

render(
  spark()->colorWhite()->data($data)
);
Terminal
$ php thermage.php
▁▂▃▅▂▇