fix png rendering, needs XML tag

This commit is contained in:
Joshua Seigler 2016-07-02 10:11:01 -04:00
parent ce37d1eb9c
commit 6f7db1cdc5

View file

@ -128,7 +128,8 @@ function renderChart(
} }
$poloniexChart = new NeatCharts\LineChart($chartData, $themes[$theme]); $poloniexChart = new NeatCharts\LineChart($chartData, $themes[$theme]);
$result = $poloniexChart->render(); $result = '<?xml version="1.0" standalone="no"?>' . PHP_EOL;
$result .= $poloniexChart->render();
if ($format == 'png') { if ($format == 'png') {
$im = new Imagick(); $im = new Imagick();