These are chat archives for oxyplot/oxyplot

17th
Jul 2015
Johan Larsson
@JohanLarsson
Jul 17 2015 15:09
Is there a way to bind a lineseries so it is included/excluded in a chart
When binding visibility the min & max are still calculated as if the lie was there
Geert van Horrik
@GeertvanHorrik
Jul 17 2015 15:28
What platform?
In WPF, you are binding visibility to the LineSeries control, which is != to the model. The visibility on the model should be synchronized in Series::SynchronizeProperties to Visibility == Visibility.Visible. LineSeries that are invisible are not drawn
Johan Larsson
@JohanLarsson
Jul 17 2015 15:30
wpf, checking it out ty sir
When invisible it does not show but axes are still calculated as if it was visible
I have a linechart with many lines
hoped that ResetAxes would ~zoom in~
Geert van Horrik
@GeertvanHorrik
Jul 17 2015 15:32
I think the reason for that is that you can switch the visibility of series really fast. If you don't want the plot to know about the series, remove the series
Johan Larsson
@JohanLarsson
Jul 17 2015 15:34
I'll write a small sample, hold on
Johan Larsson
@JohanLarsson
Jul 17 2015 15:48
Starnge that this does not render anything.
I must be tired :)
Must afk for a while.
Johan Larsson
@JohanLarsson
Jul 17 2015 16:13
hmm, LineSeries.Points, a bit unexpected for and ItemsControl
Johan Larsson
@JohanLarsson
Jul 17 2015 17:33
more clues, resetting axes does nothing
refresh updates as expected
Geert van Horrik
@GeertvanHorrik
Jul 17 2015 17:34
I think it's better to create an issue on GitHub, chat isn't the best way to deal with complex issues
Johan Larsson
@JohanLarsson
Jul 17 2015 17:34
yeah, sry
was just fishing for someone pointing out my dumb :)
I'm binding it to Count and it works except for when I clear the list
Must InvalidateFlag increase for the plot to refresh?
Johan Larsson
@JohanLarsson
Jul 17 2015 19:16
yep, looks like that was it