Hi,

On Fri, 2007-07-13 at 10:01 +0530, surej ns wrote:
> My project requires ezcompnents Line with GD driver graph. The data on
> the x-axis should come vertical currently it is coming as horizontal
> text. I plan to plot the   values between two weeks. So in one day
> there will be more than one entry. so how can I divide each day in
> graph ie interval . If u can show me a sample code I would be
> thankful. As my requirement is so urgent plz help me out

I am not sure if I understand you correctly. I see two points in your
question.

1) The interval used on the x axis.

You can set the interval used for the steps manually if the
automatically guessed value does not fit your requirements. Using a date
axis this would look like:

$graph->xAxis = new ezcGraphChartElementDateAxis();
$graph->xAxis->majorStep = 12 * 3600; // Half a day.


You can find a full date axis example here:
http://ez.no/doc/components/view/latest/(file)/introduction_Graph.html#date-time-axis

2) Using rotated texts on an axis

You can use diffenrent axis label renderers, one of the is able to draw
rotated texts on a axis, even vertical texts. I just noticed, that there
is no example for this in the tutorial, I will add an issue for this.
Just an example:

$chart->xAxis->axisLabelRenderer = 
    new ezcGraphAxisRotatedLabelRenderer();
$chart->xAxis->axisLabelRenderer->angle = 45;

You can freely define any angle here.

I hoped this helps, please provide more detailed information, otherwise.

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

tel +49 (0) 231-9742-7750 | fax +49 (0) 231-9742-7751
[EMAIL PROTECTED] | eZ systems | ez.no

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

-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to