mirror of
				https://github.com/KevinMidboe/vue-chartjs.git
				synced 2025-10-29 18:00:20 +00:00 
			
		
		
		
	Add support for xLabels and yLabels
This commit is contained in:
		| @@ -48,7 +48,15 @@ module.exports = { | |||||||
|               } |               } | ||||||
|             }) |             }) | ||||||
|  |  | ||||||
|             chart.data.labels = newData.labels |             if (newData.hasOwnProperty('labels')) { | ||||||
|  |               chart.data.labels = newData.labels | ||||||
|  |             } | ||||||
|  |             if (newData.hasOwnProperty('xLabels')) { | ||||||
|  |               chart.data.xLabels = newData.xLabels | ||||||
|  |             } | ||||||
|  |             if (newData.hasOwnProperty('yLabels')) { | ||||||
|  |               chart.data.yLabels = newData.yLabels | ||||||
|  |             } | ||||||
|             chart.update() |             chart.update() | ||||||
|           } else { |           } else { | ||||||
|             chart.destroy() |             chart.destroy() | ||||||
|   | |||||||
| @@ -48,7 +48,15 @@ module.exports = { | |||||||
|               } |               } | ||||||
|             }) |             }) | ||||||
|  |  | ||||||
|             chart.data.labels = newData.labels |             if (newData.hasOwnProperty('labels')) { | ||||||
|  |               chart.data.labels = newData.labels | ||||||
|  |             } | ||||||
|  |             if (newData.hasOwnProperty('xLabels')) { | ||||||
|  |               chart.data.xLabels = newData.xLabels | ||||||
|  |             } | ||||||
|  |             if (newData.hasOwnProperty('yLabels')) { | ||||||
|  |               chart.data.yLabels = newData.yLabels | ||||||
|  |             } | ||||||
|             chart.update() |             chart.update() | ||||||
|           } else { |           } else { | ||||||
|             chart.destroy() |             chart.destroy() | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user