andreas
andreas

Reputation: 149

Silverlight Column Chart series and data based colors

How can I build a Column Chart with its chart item's color retrieved from data that is bound to or computed by the chart series?

Upvotes: 2

Views: 4544

Answers (1)

funwithcoding
funwithcoding

Reputation: 2412

I am assuming that you are using silverlight toolkit.

You need to style your ColumnDataPoint and set the background of the border to the required color through data binding. There is a nice blog post on MSDN about this

http://blogs.msdn.com/delay/archive/2009/02/04/columns-of-a-different-color-customizing-the-appearance-of-silverlight-charts-with-re-templating-and-mvvm.aspx

Hope this helps

Upvotes: 2

Related Questions