Subversion Repositories SmartDukaan

Rev

Rev 25230 | Rev 25232 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25230 Rev 25231
Line 693... Line 693...
693
					</div>
693
					</div>
694
					<div class="col-lg-4">
694
					<div class="col-lg-4">
695
						<div class="info-box purple-bg">
695
						<div class="info-box purple-bg">
696
							<div id="preview">
696
							<div id="preview">
697
								<canvas style="width=110%" id="canvas-preview"></canvas>
697
								<canvas style="width=110%" id="canvas-preview"></canvas>
698
							  	<div id="preview-textfield">$okDays/$dayOfMonth</div>
698
							  	<div id="preview-textfield">$investments.get("okDays")/$dayOfMonth</div>
699
							</div>
699
							</div>
700
							<div class="title" style="text-align:center">Investometer</div>
700
							<div class="title" style="text-align:center">Investometer</div>
701
						</div>
701
						</div>
702
					</div>
702
					</div>
703
				</div>
703
				</div>
Line 903... Line 903...
903
			   {strokeStyle: "#FFDD00", min: 8/monthDays, max: 12/monthDays}, // Yellow
903
			   {strokeStyle: "#FFDD00", min: 8/monthDays, max: 12/monthDays}, // Yellow
904
			   {strokeStyle: "#30B32D", min: 12/monthDays, max: 1}, // Green
904
			   {strokeStyle: "#30B32D", min: 12/monthDays, max: 1}, // Green
905
			],
905
			],
906
			staticLabels: {
906
			staticLabels: {
907
			  font: "10px sans-serif",  // Specifies font
907
			  font: "10px sans-serif",  // Specifies font
908
			  labels: ["0", "8/$monthDays", "12/$monthDays", 1],  // Print labels at these values
908
			  labels: [0, 8/$monthDays, 12/$monthDays, 1],  // Print labels at these values
909
			  color: "#000000",  // Optional: Label text color
909
			  color: "#000000",  // Optional: Label text color
910
			  fractionDigits: 0  // Optional: Numerical precision. 0=round off.
910
			  fractionDigits: 3  // Optional: Numerical precision. 0=round off.
911
			},
911
			},
912
				  
912
				  
913
		  
913
		  
914
		};
914
		};
915
		var target = document.getElementById('canvas-preview'); // your canvas element
915
		var target = document.getElementById('canvas-preview'); // your canvas element