/**
 * Render Spark element to the output/string.
 *
 * @param bool $output Output or return Spark rendered element.
 * 
 * @access public
 */
public function render($output = true)

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
▁▂▃▅▂▇