@@ -780,7 +780,7 @@ function renderChart(options) {
780780 graphHeight = svgHeight - ( graphMargin . top + graphMargin . bottom ) ;
781781 } else {
782782 //console.log("smallDevice is FALSE");
783- graphMargin = { top : 32 , right : 40 , bottom : 60 , left : 80 } ;
783+ graphMargin = { top : 32 , right : 70 , bottom : 60 , left : 80 } ;
784784 graphHeight = svgHeight - ( graphMargin . top + graphMargin . bottom ) ;
785785 }
786786 var graphWidth = svgWidth * graphWidthScale - ( graphMargin . left + graphMargin . right ) - 20 ;
@@ -884,6 +884,12 @@ function renderChart(options) {
884884 . attr ( 'class' , 'y ' + nameBase + 'Axis unselectable' )
885885 . attr ( "transform" , "translate(" + graphMargin . left + "," + graphMargin . top + ")" )
886886 . call ( yAxis ) ;
887+ svg . append ( "text" )
888+ . attr ( "transform" , "translate(" + graphMargin . left + "," + ( graphHeight / 2 ) + ")rotate(-90)" )
889+ . attr ( "dy" , "-3em" )
890+ . style ( "text-anchor" , "middle" )
891+ . style ( "text-decoration" , "underline" )
892+ . text ( "Temperature" ) ;
887893
888894 var linearGravScaleY = scaleLinear ( )
889895 . domain ( [ minGravDataPoint , maxGravDataPoint ] )
@@ -895,6 +901,12 @@ function renderChart(options) {
895901 . attr ( 'class' , 'y grav ' + nameBase + 'Axis unselectable' )
896902 . attr ( "transform" , "translate(" + ( graphWidth + graphMargin . left ) + "," + graphMargin . top + ")" )
897903 . call ( yGravAxis ) ;
904+ svg . append ( "text" )
905+ . attr ( "transform" , "translate(" + ( graphWidth + graphMargin . left ) + "," + ( graphHeight / 2 ) + ")rotate(90)" )
906+ . attr ( "dy" , "-4em" )
907+ . style ( "text-anchor" , "middle" )
908+ . style ( "text-decoration" , "underline" )
909+ . text ( "Specific Gravity" ) ;
898910 }
899911
900912 var linearScaleX = scaleTime ( )
@@ -3513,7 +3525,6 @@ window.onload = function () {
35133525 return tickText ( d ) ;
35143526 } ) ;
35153527
3516- //var xaxistext = profileGraphHolder
35173528 profileGraphHolder
35183529 . append ( "g" )
35193530 . attr ( "id" , "xaxistext_profileGraph" )
0 commit comments