If I use the JPGraph classes/methods in a standalone .php file, the output is correct.
However, if I use the same code in my component, at the place of $graph->Stroke(); I get the following error:
and in the html source code shows (besides the regular html output):The image “[some URL]” cannot be displayed, because it contains errors.
‰PNG
���
IHDR��Â��Â���óz^�� �IDATxœì½m¬¥gu|?ûœùöÌxðØ31ãOlÇÁÆ0~IÛ¡©¢¤„¤)Uª¸Pµ¢”¨UZ寖ÚTUÓäG“V‘ˆ"EU"UÅrCÄ7¨Ôƒ&؃mlìñöÌìçý±=ë\Ïuµž{Ì×>Ïúq´
÷ý¬{k]÷ú¸÷9gÎ4e