With many targets I get no legend at the bottom

Asked by dw-davef

After a certain amount of targets on a graph the legend disappears, doesn't seem to matter how big I make the graph. It might make sense if the graph dimensions couldn't support the number of entries, but even on truly monumental graphs ( ie. width=10000 height=10000 ) the legend doesn't show up again.

I'm using graphite 0.9.6, and its really easy to reproduce, I just add graph elements until the legend disappears. As far as I know I have a pretty vanilla install, using mod_python, python 2.5.2, ubuntu.

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Miquel
Solved:
Last query:
Last reply:
Revision history for this message
Miquel (miquel-adrover) said :
#1

Hi!
I've got exactly the same problem. In fact, it’s really easy to reproduce. From one to ten targets we can see the legend, but more than ten the legend disappears.

Is it possible to change that behavior?

Revision history for this message
Miquel (miquel-adrover) said :
#2

I've just filed a bug and linked it to the question.

Revision history for this message
Best Miquel (miquel-adrover) said :
#3

Oops!
This is not a bug. This is a setting that can be changed at the settings.py

The setting is LEGEND_MAX_ITEMS.

Revision history for this message
Allan Bailey (zirpu) said :
#4

You can also just click on the Graph Options -> Display -> Hide Legend twice and it will show the legend.

That may be a bug in the UI though, I haven't looked.

Revision history for this message
dw-davef (davef-demonware) said :
#5

No my issue was definitely the LEGEND_MAX_ITEMS setting. I'm g2g

Revision history for this message
dw-davef (davef-demonware) said :
#6

Thanks Miquel, that solved my question.