Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Different color in legend than in graph

Hi all,

i am new to QV and i need your help again:

I want to distinguish the weekend days "saturday" and "sunday".

In the formula for the summary -> backround color i put in this definition: if (fieldweekday ='sunday', LightRed())

It works fine for the graph but not for the legend!

Every line color is red and it seems the color of the weekendday is applied.

Here is the example (see right side):

legend.jpg

Any Idea?

thanks and best regards,

Sabrina

4 Replies
Anonymous
Not applicable
Author

To do this i usually create an additional expression the same as your dimension fieldweekday and for it :

  • Untick <Line>
  • Tick <Text on Axis]
  • Set its background colour expression as needed.

And for the dimension leave as is, except unticking <Label>

datanibbler
Champion
Champion

Hi,

if you want to really have control over the colors of your chart and legend, you will have to deactivate the automatic legend (checkbox) and put in some free_text_boxes instead (on the "presentation" tab). That is kind of fickle and time-consuming because you have to position every such box - one coloured without text and one with text beside that - manually. Put the zoom to 200 or 400 % to get that right.

HTH

Best regards,

DataNibbler

Not applicable
Author

Thanks!

Do you have any screenshots ory example?

fieldweekday is a field of a table. The dimensions are DDMM and PlattformLastYear and the expression (formula) is [article online].

regards,

Sabrina

Anonymous
Not applicable
Author

Sabrina

Do try following the bullet point advice I have given.

If you have any problems then feel free to ask and / or post a sample qvw.

Bill