[ZBXNEXT-1314] Capability to rotate the labels Created: 2012 Jul 13  Updated: 2013 Dec 08

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: 2.0.0
Fix Version/s: None

Type: New Feature Request Priority: Trivial
Reporter: Martin Brassard Assignee: Unassigned
Resolution: Unresolved Votes: 2
Labels: label, maps, patch, rotation, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Installation information:
PHP version 5.1.6
PHP memory limit 256M
PHP post max size 32M
PHP upload max filesize 16M
PHP max execution time 600
PHP max input time 600
PHP time zone America/New_York
PHP databases support MySQL
PHP bcmath yes
PHP mbstring yes
PHP sockets yes
PHP GD 2.0.28
PHP GD PNG support yes
PHP libxml 2.6.26
PHP xmlwriter yes
PHP xmlreader yes
PHP ctype yes
PHP session yes
PHP gettext yes


Attachments: File map_rotation.patch    

 Description   

The capability to rotate the label text is a nice to have. This allows to rotate the text at 90, 180 or 270 degree and have more flexibility on the way the maps looks like. On paper, the code could allow any angle as it creates a new image, write the text in left to right way then uses the imagerotate function to have the requested angle. Problem would only occurs for the alignment, but that's a trivial issue.

The provided patch only implements it for the element label, but it could easily be used for the labels too. Current configuration merges the rotation with the label location and stores everything in the label_location field. A better implementation would have its own label_rotation field in the DB.


Generated at Sat Mar 15 08:37:09 EET 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.