Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Mar 24, 2019 6:57 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Graph Title Help
PostPosted: Thu Nov 15, 2018 5:09 pm 
Offline
Cacti User

Joined: Mon Apr 09, 2018 1:37 pm
Posts: 56
I am working through tidying up some graph templates, and overall I am happy but the titles in many cases are too long and are truncated.

I have been searching to see if there is either way to insert a hard return in the title so I can just make it 2 lines, or change the font size of the titles on the affected templates as they could be a little smaller and still readable (IMO)

Are either of these possible?


Top
 Profile  
 
 Post subject: Re: Graph Title Help
PostPosted: Thu Nov 15, 2018 5:32 pm 
Offline
Cacti User

Joined: Mon Apr 09, 2018 1:37 pm
Posts: 56
https://forums.cacti.net/about9409.html

Looks like this came up 13 years ago, and based on the responses at that time I'm going to guess newlines are still a problem.. But I am hoping modifying the text size is a possibility?

Another option might be simply making the graph itself larger, but I am trying to avoid that as I really like how they look now. If the entire title will not fit it isn't the end of the world!


Top
 Profile  
 
 Post subject: Re: Graph Title Help
PostPosted: Fri Nov 16, 2018 3:56 am 
Offline
Cacti Guru User

Joined: Sun Aug 27, 2017 12:05 am
Posts: 2296
There is a setting for the length of a title. You can make it larger (or smaller).

For multiple lines in the graph titles, you will have to download and compile RRDTool yourself. I added a patch to RRDTool six months ago to support multiple lines in a title but you are unlikely to have that on your system via a package.

_________________
Official Cacti Developer

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation

My resources:
How to submit Pull Requests
Development Wiki and How To's
Updated NetSNMP Memory template for Cacti 1.x
Cisco SFP template for Cacti 0.8.8


Top
 Profile  
 
 Post subject: Re: Graph Title Help
PostPosted: Fri Nov 16, 2018 11:04 am 
Offline
Cacti User

Joined: Mon Apr 09, 2018 1:37 pm
Posts: 56
I did increase the title length but some of the titles are very long as I am using the ifAlias field (Which now works thank you).

My network group has some pretty long strings in this field. It's not critical IMO and I have a ton of more pressing projects so I'm just going to tell them how many characters they have to work with and to either make them shorter or put the text they absolutely need on the left :P

Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: Google [Bot] and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group