Skip to main content
Solved

Color by attribute value is not working in Chart Generator FME 2017


saravanan
Contributor
Forum|alt.badge.img+14

i have group of values with different color codes. When I run the transformer, it considers only first row color for all bars. Actually Bar colors should vary based on color attribute , Really appreciable if anyone can help on this ?

Best answer by mark2atsafe

Hi @saravanan

I checked and found that this was a known issue in 2017:

If the data enters the ChartGenerator unsorted the color assignments are

 

wrong, even though they are supposed to be read from the fme_color. First

 

wedge gets swapped with the last one. Sorting the data seems to fix this

 

but it's still counterintuitive.

So it sounds like you can workaround this by sorting the data, presumably by fme_color

However, the issue has now been fixed anyway. If you upgrade to FME2019.1 (build 19554 or greater) then you should find that the color works as intended.

View original
Did this help you find an answer to your question?

3 replies

mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • Best Answer
  • October 30, 2019

Hi @saravanan

I checked and found that this was a known issue in 2017:

If the data enters the ChartGenerator unsorted the color assignments are

 

wrong, even though they are supposed to be read from the fme_color. First

 

wedge gets swapped with the last one. Sorting the data seems to fix this

 

but it's still counterintuitive.

So it sounds like you can workaround this by sorting the data, presumably by fme_color

However, the issue has now been fixed anyway. If you upgrade to FME2019.1 (build 19554 or greater) then you should find that the color works as intended.


mark2atsafe
Safer
Forum|alt.badge.img+44
  • Safer
  • October 30, 2019
mark2atsafe wrote:

Hi @saravanan

I checked and found that this was a known issue in 2017:

If the data enters the ChartGenerator unsorted the color assignments are

 

wrong, even though they are supposed to be read from the fme_color. First

 

wedge gets swapped with the last one. Sorting the data seems to fix this

 

but it's still counterintuitive.

So it sounds like you can workaround this by sorting the data, presumably by fme_color

However, the issue has now been fixed anyway. If you upgrade to FME2019.1 (build 19554 or greater) then you should find that the color works as intended.

Note to self: FMEENGINE-40260


saravanan
Contributor
Forum|alt.badge.img+14
  • Author
  • Contributor
  • October 31, 2019
mark2atsafe wrote:

Hi @saravanan

I checked and found that this was a known issue in 2017:

If the data enters the ChartGenerator unsorted the color assignments are

 

wrong, even though they are supposed to be read from the fme_color. First

 

wedge gets swapped with the last one. Sorting the data seems to fix this

 

but it's still counterintuitive.

So it sounds like you can workaround this by sorting the data, presumably by fme_color

However, the issue has now been fixed anyway. If you upgrade to FME2019.1 (build 19554 or greater) then you should find that the color works as intended.

Thank you Mark. I tried by sorting fme_color, but still the problem persists. Hope upgrading would be better solution.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings