Hi,

On Thu, 2009-01-15 at 12:42 +0100, Peter Hopfgartner wrote:
> I'm experimenting with the graph component. Unfortunatly some ticks on 
> the x-axis are missing.
> 
> I've attached a reduced test case and the result. Is this one of those 
> "numerical inaccuracies", as stated in
> 
> Platform: Ubuntu 8.10, 64 bit
> PHP: 5.2.6
> Graph: 1.4
> Base: 1.6
> 
> It happens with GD and with Cairo.
> 
> Is there anything I am doing wrong?

It is the default behavior of the labeled axis to reduce the amount of
labels to a value specified in the labelCount option. You can change
that using:

$chart->xAxis->labelCount = count( $dataset );

You might want to consider using a different axis type, which better
fits the assigned data, like a numeric axis, which is documented here:

http://ezcomponents.org/docs/tutorials/Graph#axis

Kind regards,
Kore

-- 
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