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

Hi,

I’ve got a collection on FastLineRenderableSeries which are set to Visible true/false based for some boolean properties. At the moment I’ve been using IsVisible property and apparently it’s not working very reliably. Most of the time it works without issue. But time to time chart comes to a stage which it does not respect IsVisible property and make all series are Visible. It’s quite difficult to identify reproducible steps and it occurs randomly.

<visuals:SciChartSurface.RenderableSeries>
                                <renderableSeries:FastLineRenderableSeries x:Name="vaSeries" DataSeries="{Binding Path= Series[0], Mode=OneWay}" 
                                                                IsVisible="{Binding ElementName=ChkVa, Path=IsChecked, Mode=OneWay}"
                                                                SeriesColor="{StaticResource VaColor}" Style="{StaticResource SeriesStyleWithPoints}" />
                                <renderableSeries:FastLineRenderableSeries DataSeries="{Binding Series[1], Mode=OneWay}" 
                                                                IsVisible="{Binding ElementName=ChkVb, Path=IsChecked, Mode=OneWay}"
                                                                SeriesColor="{StaticResource VbColor}" Style="{StaticResource SeriesStyleWithPoints}" />
                                <renderableSeries:FastLineRenderableSeries DataSeries="{Binding Series[2], Mode=OneWay}" 
                                                                IsVisible="{Binding ElementName=ChkVc, Path=IsChecked, Mode=OneWay}"
                                                                SeriesColor="{StaticResource VcColor}" Style="{StaticResource SeriesStyleWithPoints}" />
                                <renderableSeries:FastLineRenderableSeries DataSeries="{Binding Series[3], Mode=OneWay}"
                                                                IsVisible="{Binding ElementName=ChkVr, Path=IsChecked, Mode=OneWay}"
                                                                SeriesColor="{StaticResource VrColor}" Style="{StaticResource SeriesStyleWithPoints}" />
                                <renderableSeries:FastLineRenderableSeries DataSeries="{Binding Series[4], Mode=OneWay}"
                                                                IsVisible="{Binding ElementName=ChkVs, Path=IsChecked, Mode=OneWay}"
                                                                SeriesColor="{StaticResource VsColor}" Style="{StaticResource SeriesStyleWithPoints}" />
                                <renderableSeries:FastLineRenderableSeries DataSeries="{Binding Series[5], Mode=OneWay}"
                                                                IsVisible="{Binding ElementName=ChkVt, Path=IsChecked, Mode=OneWay}"
                                                                SeriesColor="{StaticResource VtColor}" Style="{StaticResource SeriesStyleWithPoints}" />
                            </visuals:SciChartSurface.RenderableSeries>
  1. Any idea how this could happen?
  2. Noticed that there two properties for the purpose of making its visibility ‘IsVisible’ and ‘Visibility’. What is the most reliable property to use for setting Visibility of FastLineRenderable series?

Thanks!
Charith

  • You must to post comments
0
0

Hi Charith,

Thanks for reporting, we logged this issue and someone will take a look soon. It’s quite interesting issue, maybe it is connected to SciChartLegend? It is internally bound to visibility of series. Do you use it?
Also, I see that you use OneWay binding on IsVisible property. Does the state of checkboxes change when this issue happens? Can you change series visibility via them after?

And regarding the second, you should use IsVisible property for such purposes, because Visibility is inherited from Control class and doesn’t influence on series appearance as we use custom drawing system.

Best regards,
Yuriy

  • Charith Jayasundara
    Hi Yuriy,I don't use SciChartLegend at all.Also, I see that you use OneWay binding on IsVisible property. Does the state of checkboxes change when this issue happens? Can you change series visibility via them after?Once this issue started I cannot change Series visibility by checking/unchecking check boxes. Series are always visible regardless of the checkbox status.I am already using IsVisible property...Thanks & Regards, Charith
  • Yuriy
    Hi Charith,I checked IsVisible property, there is only one place where it is set directly (and therefore all bindings are overridden except TwoWay), it is inside LegendModifier. Please, check you code if you don't set it somewhere accidentally.Best regards, Yuriy
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.