mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	HTML: Fix the pressure axis if no pressure samples
When no pressure samples are available the y-axis on right side gets a bogus legend, this must be fixed and the minimum value is set to zero, as there is no negative pressure value. Signed-off-by: Gehad elrobey <gehadelrobey@gmail.com> Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									bf68a2ece6
								
							
						
					
					
						commit
						7fabeda184
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -979,6 +979,7 @@ function canvas_draw()
 | 
			
		|||
						 pad : 2.05
 | 
			
		||||
					 },
 | 
			
		||||
					 y2axis : {
 | 
			
		||||
						 min : 0,
 | 
			
		||||
						 tickRenderer : $.jqplot.CanvasAxisTickRenderer,
 | 
			
		||||
						 tickOptions : {
 | 
			
		||||
							 formatString : '%ibar'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue