On Sun, 2009-11-22 at 11:12 +0100, Christof Kluß wrote:
> Hello,
> 
> in the current alpha version there are horizontal bar graphs:
> 
> http://www.ezcomponents.org/docs/api/trunk/Graph/ezcGraphHorizontalBarChart.html
> 
> with $chart->data['test']->highlight = true; the exact values can be 
> displayed at the bar.
> 
> Is it possible to change the position of these values? So that for 
> example they are standing on the bar or next to the middle of the bar?
[...]

I see three options here:

1) There was a user contribution to configure a global offset for
highlight values, which was undocumented until about 10 minutes ago (so
it is not yet visible in the online documentation). You can configure a
relative movement for those labels, but not their exact position in the
chart, like:

$chart->options->highlightXOffset = -10;

2) You can render an additional axis (at any point in the chart), which
itself consists of labels, and therefor renders an additional set of
labels in the charting area. This feature is documented in the tutorial
to some basic extend:

http://ezcomponents.org/docs/api/trunk/introduction_Graph.html#additional-axis-markers

3) If you clearly know hot to render the labels in your case you can
extend from the renderer you already use and overwrite the method
drawDataHighlightText() to do what you think works best. This is most
flexible solution, but requires to gain some insight in the rendering
infrastructure. Afterwards you can use your custom renderer as simple
as:

$chart->renderer = new myRenderer();

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