Question

How to visualize chart data using a color ramp?


Badge +7

We have generated a chart by using the transformer "HTMLReportGenerator".

As result we have something like this:

image.pngNow we wanna color each data point inside the chart differently. Something like this:

image 

In fme I can only choose one color for the hole data atribute!

Is it piossible to create different colors for one data attribute?

 

 


3 replies

Userlevel 1
Badge +21

It can be done, but requires fiddling with the HTML output and it's not particularly straightforward

image

Badge +7

how did you do that?

I know that the transformer "HTMLReportGenerator" allows only one color for the data attribute!

Userlevel 1
Badge +21

If you can create a comma separated string of RGB values representing colours for each of your points, you can then use a string replacer after the report generator to do something like this

imageExample rgba attribute

"rgba(0,3,251,255)","rgba(0,1,250,255)","rgba(0,1,250,255)","rgba(0,1,250,255)","rgba(0,1,250,255)","rgba(0,1,250,255)","rgba(0,1,250,255)","rgba(2,14,240,255)","rgba(0,30,223,255)"

 

Reply