[ZBXNEXT-1283] Better pie chart layout Created: 2012 May 24  Updated: 2024 Mar 08

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

Type: Change Request Priority: Trivial
Reporter: Joseph Bueno Assignee: Unassigned
Resolution: Unresolved Votes: 7
Labels: patch, piegraphs, trivial
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File class.cpie.php.patch     PNG File zabbix_pie.png     PNG File zabbix_pie_optimized.png    
Issue Links:
Causes
Duplicate
is duplicated by ZBX-2845 small pie graphs broken Open
is duplicated by ZBX-2879 Legend in pie chart doesn't show more... Closed

 Description   

When 'Show legend' option is active in a pie chart, a lot of space is lost on the right side as can be seen in attached zabbix_pie.png.

I have attached a patch that:

  • removes 'Value:' useless label
  • moves values next to item names
  • centers pie horizontally

After applying this patch, the pie looks like attached zabbix_pie_optimized.png and graph width can be reduced.



 Comments   
Comment by Chris Kistner [ 2012 Jul 27 ]

Thank you for this great patch!

I've also made a contribution to this in your thread for Zabbix 1.8: http://www.zabbix.com/forum/showpost.php?p=105660&postcount=2

Comment by Alexander Vladishev [ 2013 Feb 08 ]

Related issues: ZBX-2845, ZBX-2879

Comment by Gilboa Davara [ 2013 Apr 14 ]

Hi,

I applied the patch to 2.0.5 and indeed things look far better.
Small minor glitch - the last line is in the legend is "glued" to the table border.

  • Gilboa
Comment by Robin Björklin [ 2016 Aug 31 ]

I was just about to request this feature when I found this. How come this has not been merged?

Comment by Rabin [ 2017 Aug 02 ]

+1 to merge this patch upstream, the current pie display is really broken and not readable !

p.s, just saw the code for version 3.0 is completely different which doesn't allow to apply this patch manually, so if any one can please patch version 3.0, that would be great, thanks.

Generated at Fri Apr 19 00:45:32 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.