You can accomplish your requirement by adding the brushes in the BarBrushes
collection of the StackedDataBar
. Please, note that by default the collection holds several brushes, which you will first
need to remove, otherwise they will be applied before your brushes. Take a look at the code sample demonstrating this approach:
// Set the items source
-10, 2, 3, 4, 10
// Clear the default brushes
// Add new brushes
On a side note, I noticed that you have opened the same thread in the Chart section of the forum, but I think it would be better if we continue the communication for the StackedDataBar
in the DataBar section. That's why we are going to remove the other thread. However, please feel free to open a new thread in the Chart section if you have any Chart-related questions.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>