On Tue, 2007-08-07 at 11:31 +0200, Martin Sommervold wrote: > Hi there, > > I’m new to components and I am having a hard time finding my way > around the documentation. > > Assuming that I do something like this (excerpt from tutorials): > > $graph = new ezcGraphBarChart(); > $graph->options->highlightFont->background = '#EEEEEC88'; > > How can I find a list of the elements that are available under > $graph->options ? Say highlightFont for instance?
You can find the options described in the API documentation of the component. The correct classes for this are ezcGraphChartOptions [1] and ezcGraphLineChartOptions [2]. The second one describes the options to configure the highlight string. I think I will try to make those option classes more visible in the class documentation - feel free to open an issue for this at http://issues.ez.no/. > More specifically I am trying to center the highlight label above a > the bars in a bar chart, instead of having it to the side of the bar. The highlight labels are currently always centered in the box between the steps. For other (better) positioning algorithms you may open a feature request describing what your intention is here. > Also, how can I space labels away from the axis? As it is now, the > label and measurements get cramped up next to the bars and axes. I assume you are using the SVG driver. For now it is not possible to determine the text width absolutely exact - the tutorial describes it in some more detail [3]. You may use the according options in the SVG driver to change the values for font width guessing [4]. We will probably address this issue by evaluating #10957 [5]. [1] http://ez.no/doc/components/view/latest/(file)/Graph/ezcGraphChartOptions.html [2] http://ez.no/doc/components/view/latest/(file)/Graph/ezcGraphLineChartOptions.html [3] http://ez.no/doc/components/view/latest/(file)/introduction_Graph.html#svg-driver [4] http://ez.no/doc/components/view/latest/(file)/Graph/ezcGraphSvgDriverOptions.html [5] http://issues.ez.no/10957 -- 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
signature.asc
Description: This is a digitally signed message part
-- Components mailing list [email protected] http://lists.ez.no/mailman/listinfo/components
