ksobon / Mandrill

data visualization for Dynamo
30 stars 14 forks source link

Assigning colors to values #34

Closed DanielHurtubise closed 6 years ago

DanielHurtubise commented 7 years ago

I'm trying to get each bar in a Bar Chart to use a different color. I use a Color.Range Node and fed it into the Bar Color input but no luck. I also want to be able to use the same combination(value/color) for more chart to keep it consistent.

Thanks

ksobon commented 7 years ago

That functionality only exists in the Horizontal Bar Chart at the moment. Regular bar chart has single color. I will put that down as a feature request.

DanielHurtubise commented 7 years ago

I was under the impression that this would work image

ksobon commented 7 years ago

This will:

image

Reason why is because D3 charts assign colors to bars by properties of data. So you can say color each bar by its value X, which in this case is the input Color on data node.

ksobon commented 6 years ago

@DanielHurtubise so this would actually work, just follow my image.