mirror of
				https://github.com/firefly-iii/firefly-iii.git
				synced 2025-10-31 02:36:28 +00:00 
			
		
		
		
	Added option for other charts (chartJS currently).
This commit is contained in:
		
							
								
								
									
										11
									
								
								public/js/Chart.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								public/js/Chart.min.js
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										34
									
								
								public/js/charts.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								public/js/charts.js
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
|  | ||||
| function lineChart(URL, container, options) { | ||||
|     "use strict"; | ||||
|     console.log('no impl for lineChart'); | ||||
| } | ||||
|  | ||||
| function areaChart(URL, container, options) { | ||||
|     "use strict"; | ||||
|     console.log('no impl for areaChart'); | ||||
| } | ||||
|  | ||||
| function columnChart(URL, container, options) { | ||||
|     "use strict"; | ||||
|     console.log('no impl for columnChart'); | ||||
| } | ||||
|  | ||||
| function stackedColumnChart(URL, container, options) { | ||||
|     "use strict"; | ||||
|     console.log('no impl for stackedColumnChart'); | ||||
| } | ||||
|  | ||||
| function comboChart(URL, container, options) { | ||||
|     "use strict"; | ||||
|     console.log('no impl for comboChart'); | ||||
| } | ||||
|  | ||||
| function pieChart(URL, container, options) { | ||||
|     "use strict"; | ||||
|     console.log('no impl for pieChart'); | ||||
| } | ||||
| @@ -1,6 +1,15 @@ | ||||
| /* globals $, columnChart, google, lineChart, pieChart, stackedColumnChart, areaChart */ | ||||
| google.setOnLoadCallback(drawChart); | ||||
|  | ||||
| $(function () { | ||||
|     "use strict"; | ||||
|     if (typeof google !== 'undefined') { | ||||
|         // do google charts: | ||||
|         google.setOnLoadCallback(drawChart); | ||||
|     } else { | ||||
|         // do chart JS stuff. | ||||
|         drawChart(); | ||||
|     } | ||||
| }); | ||||
|  | ||||
| function drawChart() { | ||||
|     "use strict"; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user