PHP Classes

Setting values

Recommend this page to a friend!

      Power Graphic  >  All threads  >  Setting values  >  (Un) Subscribe thread alerts  
Subject:Setting values
Summary:Way to set the right values to the graphic
Messages:1
Author:Romeu Gamelas
Date:2006-02-01 22:59:50
 

  1. Setting values   Reply   Report abuse  
Picture of Romeu Gamelas Romeu Gamelas - 2006-02-01 22:59:50
If you're unsure that your data will hit the chart with the correct format, maybe due to an early setlocale call or even user defined setlocale (eg. changing number format from 2.13 to 2,13) you must set the values as follow:

$PG->x[0] = "Some description";
$PG->y[0] = number_format($var_with_the_value, '.','');