Ver código fonte

Curve type fix

Robert Marshall 8 anos atrás
pai
commit
ef248feac1
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      View/Temperature/index.view
  2. 1 1
      scripts/directives/googleChart.js

+ 1 - 1
View/Temperature/index.view

@@ -19,7 +19,7 @@
 	<div>
 		Outside: {{temperatureData.outsideTemperature | number: 1}}
 	</div>
-	<google-chart data="readings" curveType="function" v-axis-title="Temperature" legend-position="top" tool-tip-inside="{Timestamp:H:i}: {Inside:1}" tool-tip-outside="{Timestamp:H:i}: {Outside:1}"></google-chart>
+	<google-chart data="readings" curve-type="function" v-axis-title="Temperature" legend-position="top" tool-tip-inside="{Timestamp:H:i}: {Inside:1}" tool-tip-outside="{Timestamp:H:i}: {Outside:1}"></google-chart>
 	<scope-init value="readings"><?=json_encode($readings)?></scope-init>
 	<scope-init value="temperatureData"><?=json_encode($current)?></scope-init>
 </div>

+ 1 - 1
scripts/directives/googleChart.js

@@ -32,7 +32,7 @@ app.directive('googleChart', function() {
 				},
 				backgroundColor: attributes.background || 'transparent'
 			};
-
+			
 			function formatToolTip(input, args) {
 				return input.replace(/{(.+?)(:.*?)?}/g, function(match, index, format) {
 					if (format)