Hi,

 

I'm trying to change the <tr:chart> SVG template in order to display the
group labels (x-axis labels) rotated by -45 degrees, as they are longer
in my case (timestamps in the format yyyy.MM.dd hh:MM:ss).

 

I've tried to use a custom SVG template, where I've put a rotation
command into the <text> template for the group labels:

<text xml:space="preserve" id="groupLabelPrototype"
transform="rotate(-45)" style="font:11px Tahoma, Verdana, Helvetica,
sans-serif" fill="#666666">label</text>

 

The problem is that the rotation in the groupLabelPrototype text
template is performed using the origin (0/0) as rotation origin. Thus
all group labels are shown in the middle oft the diagram, just image the
line of textual x-axis labels being printed in a 45 degree manner right
through the diagram.

 

 

The SVG rotate attribute supports a rotation using a defined origin:
"rotate(ANGEL X_POSITION Y_POSITION)".

 

How can these label rotations be achieved?


I would love to see two new <tr:chart> attributes allowing to rotate the
x & y axis labels by a given number of degree.

 

Thanks a lot!

 

Cheers,

Wolf

 

 

Reply via email to