Hello,
My application is reading multiple large files parallelly. and While it reads, I need to display the progress as a chart with information on How many OK Bytes are read, no of Bad Data(Bytes) and unread data bytes.
Initially, unreadDataBytes are 100%. So, I am able to see the DarkGray color. But as it files reading progress, I need to change the colors in the bars as well which is not happening.
Below is the XAML code:
<ig:Stacked100BarSeries XAxis="{Binding ElementName=BarXAxis}" YAxis="{Binding ElementName=BarYAxis}" ItemsSource="{Binding Readers}">
<ig:Stacked100BarSeries.Series> <ig:StackedFragmentSeries ValueMemberPath="Statistics.NumberOfOkBytesRead" Title="OK Bytes" Brush="{StaticResource AllGoodBrush}"/> <ig:StackedFragmentSeries ValueMemberPath="Statistics.NumberOfBadBytesRead" Title="Bad Bytes" Brush="{StaticResource FailBrush}"/> <ig:StackedFragmentSeries ValueMemberPath="Statistics.NumberOfUnreadBytes" Title="Unread Bytes" Brush="DarkGray"/> </ig:Stacked100BarSeries.Series>
</ig:Stacked100BarSeries>
This is the view that I see:
I tried to find some existing posts for this issue but apparently they are not answered.
Any comments on this issue. Thanks in advance.
Hello Preeti,
Fragments are not visual elements, please see the attachment below on how to update your Brushes.
StackedSeriesBrushSample.zip
Hi,
Thanks for the reply and sorry for the late response.
I modified the attached code in a way that coal, gas and other resources are visible and I am just changing the values in the timer, not the colors. basically the percentage is changing in the timer. each resource has its own color.
Now when I run the application, I can see the behavior that I want to achieve.
I still need to work on my application but I got the idea now.
Thanks for your help.