Missing entries in color selection in graphs and templates

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Sumdzik
Posts: 10
Joined: Sun Nov 08, 2009 1:02 pm
Location: Poland

Missing entries in color selection in graphs and templates

Post by Sumdzik »

Hello,
I've upgraded cacti from 1.1.7 to 1.1.9 and I have problem with missing colors in graph tamplate color selection field.

In Presets/Color Cacti is showing 340 colors, but in dropdown menu in a graph template there is only fourteen of them.

I checked color table in a database and there are also 340 colors,

Please help.

Regards,
Attachments
colors2.PNG
colors2.PNG (23.88 KiB) Viewed 1343 times
colors.png
colors.png (26.07 KiB) Viewed 1343 times
Sumdzik
Posts: 10
Joined: Sun Nov 08, 2009 1:02 pm
Location: Poland

Re: Missing entries in color selection in graphs and templat

Post by Sumdzik »

Hi,
I think it is a firefox issue (currently I'am using 53). When I input some data only the colors matching appears, but I cannot list more than 14.

Does any one is using other browser?
Attachments
colors2.png
colors2.png (14.99 KiB) Viewed 1310 times
ctyler2621
Posts: 6
Joined: Tue Aug 09, 2016 11:51 am

Re: Missing entries in color selection in graphs and templat

Post by ctyler2621 »

Same behavior for me using Chrome. So not specific to Firefox.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Missing entries in color selection in graphs and templat

Post by cigamit »

Thats because its a search box, not a full drop down list, and will only show the first 14 results. Start typing in that box (for example "Red")
BerndP
Posts: 3
Joined: Wed Apr 11, 2018 9:51 am

Re: Missing entries in color selection in graphs and templat

Post by BerndP »

Hi all,

i'm running into the same problem here with a 1.1.35 installation i started in January.

Yes, i already found out before reading this post, that it is a select box, and that you can use SAYT.

But unfortunately the annoying part of it is:
I enter "red" for example, and i get more than 14 entries with "red" in the name, but only the first 14 are displayed.
So i will rarely have a real chance to select from a proper full set of search, if i don't know the correct color name in advance.
This gets even more inconvenient with all the unnamed entries.
Therefore i would rather consider it a bug - others will probably agree to this decision.

Would it be somehow easily possible to rise the number of list items?
Maybe as a configurable parameter? That would be really helpful as a start.
I have already grep'ed across the code a bit, but did not find any suitable point where i can change the item count.

Another even better solution could be a multi-column list-box with more entries or to open a popup window where all colors are shown.
Any chance to get that fixed in one of the suggested ways?
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Missing entries in color selection in graphs and templat

Post by netniV »

I would suggest raising this as an issue on GitHub so that it can be addressed. Personally, I think colour selection should probably take a better format such as the colour wheels you can see in other applications, though I wouldn't want the job of creating it from scratch.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
BerndP
Posts: 3
Joined: Wed Apr 11, 2018 9:51 am

Re: Missing entries in color selection in graphs and templat

Post by BerndP »

Thanks, I just did so :)

reference:
https://github.com/Cacti/cacti/issues/1545
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests