 yavs
		
			yavs
		
		
		
		
		
		
		
		
	
			01-09-2020 01:58 AM
Hello everyone!!
I have a waveform chart that is plotting each 1 second data.
What I want but I can not achieve is to be able of scrolling(X-axe) to a any position I want on the plot with the X-scrollbar and stay there (while the chart is still plotting new data).
I tried different things but I can't achieve it, each time I scroll to the left side, after I release the button, the scrollbar goes automatically to the right side. To do what I want I have to keep pressed the X-scrollbar.
I also tried with the property node "XScale.ScaleFit" but it doesn't do what I need.
Any idea on how to solve the problem?
 GerdW
		
			GerdW
		
		
		 
		
		
		
		
		
	
			01-09-2020 02:21 AM
 wiebe@CARYA
		
			wiebe@CARYA
		
		
		 
		
		
		
		
		
	
			01-09-2020 02:45 AM
It seems that the scrollbar is actively ruining the chart behavior.
With the scrollbar on, the normal zooming\moving tools also stop functioning properly. With the scrollbar off, they work as expected.
I guess the (only?) way out it to make your own scrollbar, and use events (scale change for the chart, value change for the scrollbar) to synchronize the chart and the scrollbar. Of course this code can\should be encapsulated in an XControl, QControl, class, etc..