question

Patrick Zweekhorst avatar image
1 Like"
Patrick Zweekhorst asked Matt Long commented

Is it possible to have colors for states > 25 in the getRGBColor?

Hi,

I have a custom state profile with 80 possible states. The problem I have is that if for example states 1, 50 and 80 were active all 80 states are in the color tab in the state pie. This is fine, however all states > 25 have as default color white if you select define colors (see picture colors.png). Is it possible to have a change in the getRGBColor function such that also states with an index >25 have a good color?

Thanks,

Patrick

FlexSim 17.0.0
dashboardsstate chartcolor
colors.png (14.6 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Phil BoBo avatar image
0 Likes"
Phil BoBo answered Matt Long commented

If you are checking Define Colors, pick colors for each of those states so that they aren't white.

If you want the colors that we chose, don't check that box.

I don't understand this question.

· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Mischa Spelt avatar image Mischa Spelt commented ·

Phil,

The point is, having a big state profile of which any given object only uses a few states, we don't want the white color for the majority of our states, nor define colors manually for all of them in every state pie we add. When I add more than x series to a graph, you also don't plot all of them in white, but instead have an algorithm to generate more as-distinct-as-practical colors, right? The first 25 colors are fine, the question was if you would be able to improve the "if(index > 25)" clause of the getRGBColor node. We would suggest either to copy/paste in the algorithm that generates colors for the series, or - if the whole HSL conversion stuff is too much work - even something as simple as "repeat the first 25 colors" would be better.

For the time being we overwrote the node in the module to just mod the index by 25.

0 Likes 0 ·
Matt Long avatar image Matt Long Mischa Spelt commented ·

Perhaps the default color shouldn't be white, but you'll notice in that function that the numbers for the colors had to be hard coded. This is why only the first 25 colors work.

It's really not that hard to customize the colors. You don't have to set your colors up for every state pie you create, just save your color scheme.

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.