Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to change the bar background of column series in DVC:Chart to red?
    text
    copied!<p>Hi i'm plotting <strong>columnseries</strong> graph using chart controls by downloading Microsoft wpftoolkit. I can able to draw the graph using my data but the background color of the bar was not changing.How to change the bar color to red instead of default <strong>LightSteelBlue</strong> color. Here is my code</p> <pre><code>&lt;Window x:Class="net.Window1" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:DVC="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit" xmlns:DV="clr-namespace:System.Windows.Controls.DataVisualization;assembly=System.Windows.Controls.DataVisualization.Toolkit" Title="Window1" Height="800" Width="800" xmlns:my="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit"&gt; &lt;Grid&gt; &lt;DVC:Chart Canvas.Top="80" Canvas.Left="10" Name="mcChart" Width="800" Height="450" FontSize="12" Background="DarkGray" Foreground="DarkRed"&gt; &lt;DVC:Chart.Series&gt; &lt;DVC:ColumnSeries x:Name="Barchart" Title="Students" ItemsSource="{Binding list}" IndependentValueBinding="{Binding Path=Name}" DependentValueBinding="{Binding Path=students}" &gt; &lt;/DVC:ColumnSeries&gt; &lt;/DVC:Chart.Series&gt; &lt;/DVC:Chart&gt; &lt;/Grid&gt; </code></pre> <p></p> <p>can any one tel me how to do this?.</p> <p>Thanks in advance. Please answer this.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload