Hi,

On Tue, 2009-11-24 at 18:01 +0100, Raul Mateos wrote:
> Hello, I'm using 2009.2 beta.
> 
> I have some data like:
> 
> 'Jan'=>20.000,
> 'Feb'=>50.000,
> 'Mar'=>12.500,
> ...
> 
> an so on.
> 
> I tried to set:
> 
> $graph->yAxis->max = 20.000;
> $graph->yAxis->min = 0;
> 
> and I have:
> 
> $graph->data['data']->highlight = true;
> 
> But I get, in the y axis, the number "20" as the maximum, not "20.000"
> 
> I've tried several axisLabelRenderer, but no luck. Also tried
> $graph->options->label = '%2$.3f (%3$.1f%%) ';

You can format the axis label using the axis formatString options, like:

$graph->yAxis->formatString = '%.3f';

Which will format the axis labels, like you seem to expect from your
examples.

You are aware that in PHP the . is not the thousands separator, but a
decimal point, right? :) 20.000 equals 20. here.

If you want to format the axis values with locale specific numbers, you
might want to try defining a custom labelCallback [1] and using the PHP
function number_format() for this.

Kind regards,
Kore

[1]
http://ezcomponents.org/docs/api/trunk/Graph/ezcGraphChartElementAxis.html#prop-$labelCallback

-- 
Mit freundlichen Grüßen / Med vennlig hilsen
 
Kore Nordmann (GPG: 0xDDC70BBB)
eZ Components Developer
eZ systems Headquarters

tel +49 (0) 231-9742-7750 | fax +49 (0) 231-9742-7751
k...@ez.no | eZ systems | ez.no

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to