mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-10-26 19:14:12 +00:00 
			
		
		
		
	🎨
This commit is contained in:
		
							parent
							
								
									40a16a47de
								
							
						
					
					
						commit
						3d9f58b188
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -201,12 +201,13 @@ async function renderChart() { | |||
| 				tooltip: { | ||||
| 					enabled: false, | ||||
| 					callbacks: { | ||||
| 						title() { | ||||
| 							return ''; | ||||
| 						title(context) { | ||||
| 							const v = context[0].dataset.data[context[0].dataIndex]; | ||||
| 							return v.d; | ||||
| 						}, | ||||
| 						label(context) { | ||||
| 							const v = context.dataset.data[context.dataIndex]; | ||||
| 							return ['d: ' + v.d, 'v: ' + v.v.toFixed(2)]; | ||||
| 							return ['Active: ' + v.v]; | ||||
| 						}, | ||||
| 					}, | ||||
| 					//mode: 'index', | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue