SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

0
0

Dear all,

I try to style default value for the FastLineRenderSeries by setting the stroke color and thinckness.
If In set directly those value inside xaml as below it works fine :

<s:SciChartSurface.RenderableSeries>
            <s:FastLineRenderableSeries  DataSeries="{Binding ColumnDataSeries}"
                                         Stroke="DarkBlue"
                                         StrokeThickness="2"/>
        </s:SciChartSurface.RenderableSeries>

Then if I create the following style and apply it, it does not work

<Style x:Key="SingleStrokeStyle" TargetType="s:FastLineRenderableSeries">
    <Setter Property="Stroke" Value="{StaticResource NigthBlueBrush}"/>
    <Setter Property="StrokeThickness" Value="2"/>
</Style>

Any idea how to make it work ?

Regards
serge

Version
4
  • You must to post comments
0
0

Usually you need to set the Style on the series, like this

 <s:FastLineRenderableSeries   Style="{StaticResource SingleStrokeStyle}"/>

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.