Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Where can I change the default Bar Chart colour by IDs?

I know that one can change it in the Color tab. But how and where can I change the Colour of my Bar Chart on ID e.g. Supplier level. Thank you!

15 Replies
Anonymous
Not applicable
Author

You might try creating the RGB values of your colour palette as a standalone field in your data model and then use the FieldValue() function to call out the required value. Using the example above it might look like...

FieldValue('Colour Palette', FieldIndex('field',field))

Not applicable
Author

Hi Adam,

Thanks for your reply.

I am trying that but facing some issues.

You mean if I use

FieldValue('Colour Palette',fieldindex( $(=chr(39) & GetCurrentField([Cyclic_Dims]) & chr(39) ), $(='[' & GetCurrentField([Cyclic_Dims]) & ']' ) ))

This should give me the colors as defined in color palette. but not working as expected.

can you help me on this.

Thanks

Khushboo

Anonymous
Not applicable
Author

My guess would be that your dollar expansions are not working as expected. Break down each part of the expression into individual text boxes to see what response they are giving you. Might also be a good idea to test out the general idea on a much simplified app to make sure that the theory is sound.

Not applicable
Author

Hi Adam,

Thanks for your reply.

I am trying that but facing some issues.

You mean if I use

FieldValue('Colour Palette',fieldindex( $(=chr(39) & GetCurrentField([Cyclic_Dims]) & chr(39) ), $(='[' & GetCurrentField([Cyclic_Dims]) & ']' ) ))

This should give me the colors as defined in color palette. but not working as expected.

can you help me on this.

Thanks

Khushboo

Anonymous
Not applicable
Author

I've been playing around with this. Given a field of 'Person' and a Palette field of 'Palette' the following expression returns the correct RGB values

=FieldValue('Palette', FieldIndex('Person', Person))

However, this is then not being applied correctly as a background colour in the chart. Here I have assigned the expression as a background colour and as text on the data point.

Colour Challenge.png

Not sure where to go from here.

kuczynska
Creator III
Creator III

Did you try to use Multicolored option?sc1.PNG


I'm not sure if that will help as I have no idea how many dimension you are using etc.