Note that there are some explanatory texts on larger screens.

plurals
  1. POWPF Chart Toolkit - Change area series color's opacity
    primarykey
    data
    text
    <p>I need the area series charting to look like:<img src="https://i.stack.imgur.com/vSzmv.png" alt="enter image description here"></p> <p>I succeeded in hiding the two axis and changing the colors to gradient brush. I still need help on changing the opacity so the green one will be "behind" the orange one. Also - How do I change the little points on the graph? How do I change the background to be transparent? How to hide the chart title?</p> <p>Right now it looks like this:</p> <p><img src="https://i.stack.imgur.com/jTRrf.png" alt="enter image description here"></p> <p>Any help will be very appreciated!</p> <p>Here is my xaml code:</p> <pre><code> &lt;LinearGradientBrush x:Key="GreenGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1"&gt; &lt;LinearGradientBrush.GradientStops&gt; &lt;GradientStop Color="#77b31a" Offset="0.75"&gt;&lt;/GradientStop&gt; &lt;GradientStop Color="#85d805" Offset="0.45"&gt;&lt;/GradientStop&gt; &lt;/LinearGradientBrush.GradientStops&gt; &lt;/LinearGradientBrush&gt; &lt;LinearGradientBrush x:Key="OrangeGradientBrush" StartPoint="0.5,0" EndPoint="0.5,1"&gt; &lt;LinearGradientBrush.GradientStops&gt; &lt;GradientStop Color="#fff92900" Offset="0.75"&gt;&lt;/GradientStop&gt; &lt;GradientStop Color="#ffff6115" Offset="0.45"&gt;&lt;/GradientStop&gt; &lt;/LinearGradientBrush.GradientStops&gt; &lt;/LinearGradientBrush&gt; &lt;Style x:Key="GreenAreaSeriesStyle" TargetType="Control"&gt; &lt;Setter Property="Background" Value="{StaticResource GreenGradientBrush}" /&gt; &lt;Setter Property="Opacity" Value="1"&gt;&lt;/Setter&gt; &lt;/Style&gt; &lt;Style x:Key="OrangeAreaSeriesStyle" TargetType="Control"&gt; &lt;Setter Property="Background" Value="{StaticResource OrangeGradientBrush}" /&gt; &lt;Setter Property="Opacity" Value="1"&gt;&lt;/Setter&gt; &lt;/Style&gt; &lt;datavis:ResourceDictionaryCollection x:Key="MyPalette"&gt; &lt;ResourceDictionary&gt; &lt;Style x:Key="DataPointStyle" BasedOn="{StaticResource GreenAreaSeriesStyle}" TargetType="Control" &gt; &lt;/Style&gt; &lt;/ResourceDictionary&gt; &lt;ResourceDictionary&gt; &lt;Style x:Key="DataPointStyle" BasedOn="{StaticResource OrangeAreaSeriesStyle}" TargetType="Control" &gt; &lt;/Style&gt; &lt;/ResourceDictionary&gt; &lt;/datavis:ResourceDictionaryCollection&gt; &lt;Style x:Key ="PerformanceChartMajorTickMarkStyle" TargetType="Line"&gt; &lt;Setter Property="Visibility" Value="Collapsed" /&gt; &lt;/Style&gt; &lt;/Window.Resources&gt; &lt;charting:Chart Palette="{StaticResource MyPalette}" HorizontalAlignment="Left" Margin="39,38,0,0" Name="chart1" Title="Chart Title" VerticalAlignment="Top" Width="815" Height="598" OverridesDefaultStyle="False"&gt; &lt;charting:Chart.LegendStyle&gt; &lt;Style TargetType="datavis:Legend"&gt; &lt;Setter Property="Width" Value="0" /&gt; &lt;/Style&gt; &lt;/charting:Chart.LegendStyle&gt; &lt;charting:AreaSeries Name="Green" DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" IsSelectionEnabled="True" &gt; &lt;charting:AreaSeries.IndependentAxis&gt; &lt;charting:CategoryAxis Orientation="X" Visibility="Hidden"/&gt; &lt;/charting:AreaSeries.IndependentAxis&gt; &lt;charting:AreaSeries.DependentRangeAxis&gt; &lt;charting:LinearAxis Orientation="Y" Visibility="Hidden"/&gt; &lt;/charting:AreaSeries.DependentRangeAxis&gt; &lt;/charting:AreaSeries&gt; &lt;charting:AreaSeries Name="Orange" DependentValuePath="Value" IndependentValuePath="Key" ItemsSource="{Binding}" IsSelectionEnabled="True"&gt; &lt;charting:AreaSeries.IndependentAxis&gt; &lt;charting:CategoryAxis Orientation="X" Visibility="Hidden"/&gt; &lt;/charting:AreaSeries.IndependentAxis&gt; &lt;charting:AreaSeries.DependentRangeAxis&gt; &lt;charting:LinearAxis Orientation="Y" Visibility="Hidden"/&gt; &lt;/charting:AreaSeries.DependentRangeAxis&gt; &lt;/charting:AreaSeries&gt; &lt;/charting:Chart&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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