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

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

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.