Using a dataset to configure a chart

Hi,
just wondering how I should approach this issue, I have a dataset coming out of a Rowselector with 4 columns. These should act as input to a chart component to show a barchart of 2 of the four columns and one of the other columns should dictate the color of the bar.

Is this possible and if so how should I approach the problem?

Series color is not controlled by the “Data” dataset. What you would want to do is use scripting to set seriesColors property, which takes Colors[] as its datatype.