#014010: Possibility to set x/y offsets for highlightValue

Description:

ezc Graph could use a feature allowing you to set x/y offsets for the highlightValue, as it tends to output the highlightValue for the first entry on top of the y-axis in line graphs.

Attached are patches for charts/line.php, options/line_graph.php and renderer/2d.php that allows you to set the x/y offset in pixels (also supports negative offsets). Naturally defaults to no offset (0 px) if not set.

Usage:


        $graph->options->highlightXOffset = 10;
        $graph->options->highlightYOffset = -5;

Environment:

Operating System:
PHP Version: (please be specific, like '4.4.3' or '5.1.5')
Database and version:
Browser (and version):


- Attachments
highlightOffset.patch (3.1 kb)
[Download] [Permanent Link]
Patch allowing you to set x/y offsets for highlightValue in 2d graphs

- Comments

Implemented in revision #9542.

#259307 by Kore Nordmann on December 4th, 2008 [Permanent Link]

- History
Properties
Type Enhancement
Priority Medium
Component Components » Graph
Affects Unknown
Fix Version 2008.2RC1 - eZ components 2008.2RC1
Reporter Markus Lervik
Responsible Kore Nordmann
Status 0 Closed
Resolution Implemented
Created November 25th, 2008
Updated December 4th, 2008
Resolved December 4th, 2008
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #015537
  Graph shows to small and truncated rotated axis labels