Archived

This topic is now archived and is closed to further replies.

  • 0

Problem with the Charts Tool in PHP file


Question

Posted · Report post

Hi guys I am trying to use the "charts" shortcode in my PHP file

my code is

echo "[chart data='" . $i . "," . $j . "' bg='F7F9FA' labels='Drinks|Bread' colors='058DC7,50B432' size='488x200' title='Inventory Statics' type='pie']";

 

while $i and $j are two integers. 

However, I couldn't get the charts correctly, the image appears like this

post-42644-0-62722800-1364673338_thumb.j

 

Could anyone help me please?

 

Thanks

Share this post


Link to post
Share on other sites

1 answer to this question

Posted · Report post

my bad I misunderstand, the values of the data could be only integer.

 

Sorry about that :-)

Share this post


Link to post
Share on other sites